aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_regex_stdlib.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-12-16 14:17:56 +0000
committerGravatar Sadie Powell2021-12-16 14:17:56 +0000
commit029e047f9925aca9f781604447c9a30498575993 (patch)
treef16e1a5617dc545ea0acf58b0d002dc422125d5f /src/modules/m_regex_stdlib.cpp
parentMake upper case regex flags remove the flag if previously set. (diff)
Mark Regex::Engine::Create{Human,} as const.
Diffstat (limited to 'src/modules/m_regex_stdlib.cpp')
-rw-r--r--src/modules/m_regex_stdlib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_regex_stdlib.cpp b/src/modules/m_regex_stdlib.cpp
index c1c181dc6..580934400 100644
--- a/src/modules/m_regex_stdlib.cpp
+++ b/src/modules/m_regex_stdlib.cpp
@@ -67,7 +67,7 @@ class StdLibEngine final
{
}
- Regex::PatternPtr Create(const std::string& pattern, uint8_t options) override
+ Regex::PatternPtr Create(const std::string& pattern, uint8_t options) const override
{
return std::make_shared<StdLibPattern>(pattern, options, regextype);
}