aboutsummaryrefslogtreecommitdiffstats
path: root/include/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-10 23:02:45 +0000
committerGravatar Sadie Powell2023-01-10 23:30:34 +0000
commitb2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 (patch)
tree3319a65d5472ec30780560003264fa815dbfd711 /include/modules
parentFix some unnecessary string copies. (diff)
downloadinspircd++-b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155.tar.gz
inspircd++-b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155.tar.bz2
inspircd++-b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155.zip
Qualify auto correctly in all cases.
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/regex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/modules/regex.h b/include/modules/regex.h
index 62cfcfdf0..f4b557b50 100644
--- a/include/modules/regex.h
+++ b/include/modules/regex.h
@@ -252,7 +252,7 @@ inline Regex::PatternPtr Regex::Engine::CreateHuman(const std::string& pattern)
throw Exception(creator, pattern, "Regex patterns must be terminated with a '/'!");
uint8_t options = Regex::OPT_NONE;
- for (const auto& flag : insp::iterator_range(pattern.begin() + end + 1, pattern.end()))
+ for (const auto flag : insp::iterator_range(pattern.begin() + end + 1, pattern.end()))
{
switch (flag)
{