diff options
| author | 2023-01-10 23:02:45 +0000 | |
|---|---|---|
| committer | 2023-01-10 23:30:34 +0000 | |
| commit | b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 (patch) | |
| tree | 3319a65d5472ec30780560003264fa815dbfd711 /src/helperfuncs.cpp | |
| parent | Fix some unnecessary string copies. (diff) | |
Qualify auto correctly in all cases.
Diffstat (limited to 'src/helperfuncs.cpp')
| -rw-r--r-- | src/helperfuncs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |
