From b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 10 Jan 2023 23:02:45 +0000 Subject: Qualify auto correctly in all cases. --- include/modules/regex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/modules') 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) { -- cgit v1.3.1-10-gc9f91