From 52cc8a418307ae7a551d23e6bd2d367b544e7bf9 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 7 Jan 2022 17:12:42 +0000 Subject: Refactor CoreException and ModuleException. --- src/modules/m_regex_stdlib.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_regex_stdlib.cpp') 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(pattern, options, regextype); + return std::make_shared(creator, pattern, options, regextype); } }; -- cgit v1.3.1-10-gc9f91