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. --- src/helperfuncs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/helperfuncs.cpp') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 7650e245f..da2a6362b 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -190,7 +190,7 @@ bool InspIRCd::DefaultIsIdent(const std::string_view& n) if (n.empty()) return false; - for (const auto& chr : n) + for (const auto chr : n) { if (chr >= 'A' && chr <= '}') continue; @@ -304,7 +304,7 @@ bool InspIRCd::Duration(const std::string& str, unsigned long& duration) unsigned long subtotal = 0; /* Iterate each item in the string, looking for number or multiplier */ - for (const auto& chr : str) + for (const auto chr : str) { /* Found a number, queue it onto the current number */ if (chr >= '0' && chr <= '9') @@ -341,7 +341,7 @@ unsigned long InspIRCd::Duration(const std::string& str) bool InspIRCd::IsValidDuration(const std::string& duration) { - for (const auto& c : duration) + for (const auto c : duration) { if (((c >= '0') && (c <= '9'))) continue; -- cgit v1.3.1-10-gc9f91