diff options
| author | 2022-01-07 17:12:42 +0000 | |
|---|---|---|
| committer | 2022-01-07 17:16:50 +0000 | |
| commit | 52cc8a418307ae7a551d23e6bd2d367b544e7bf9 (patch) | |
| tree | 9fff020964190f33174e78ff6201381be577d0b3 /src/modules/m_regex_stdlib.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
Refactor CoreException and ModuleException.
Diffstat (limited to 'src/modules/m_regex_stdlib.cpp')
| -rw-r--r-- | src/modules/m_regex_stdlib.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_regex_stdlib.cpp b/src/modules/m_regex_stdlib.cpp index 580934400..714ed05aa 100644 --- a/src/modules/m_regex_stdlib.cpp +++ b/src/modules/m_regex_stdlib.cpp @@ -32,7 +32,7 @@ class StdLibPattern final std::regex regex; public: - StdLibPattern(const std::string& pattern, uint8_t options, std::regex::flag_type type) + StdLibPattern(const Module* mod, const std::string& pattern, uint8_t options, std::regex::flag_type type) : Regex::Pattern(pattern, options) { // Convert the generic pattern options to stdlib pattern flags. @@ -46,7 +46,7 @@ class StdLibPattern final } catch(const std::regex_error& error) { - throw Regex::Exception(pattern, error.what()); + throw Regex::Exception(mod, pattern, error.what()); } } @@ -69,7 +69,7 @@ class StdLibEngine final Regex::PatternPtr Create(const std::string& pattern, uint8_t options) const override { - return std::make_shared<StdLibPattern>(pattern, options, regextype); + return std::make_shared<StdLibPattern>(creator, pattern, options, regextype); } }; |
