diff options
| author | 2021-04-01 18:10:11 +0100 | |
|---|---|---|
| committer | 2021-04-01 18:10:11 +0100 | |
| commit | ef24ec632da12f272eddcf9924eacde9260597a2 (patch) | |
| tree | 1d9561525e174249c2776fae38ce6c757a17a901 /src/listmode.cpp | |
| parent | Implement support for random spamtrap channels in the LIST output. (diff) | |
Constify variables within loops.
Diffstat (limited to 'src/listmode.cpp')
| -rw-r--r-- | src/listmode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listmode.cpp b/src/listmode.cpp index 2303065b1..7ecdc2eeb 100644 --- a/src/listmode.cpp +++ b/src/listmode.cpp @@ -68,7 +68,7 @@ void ListModeBase::DoRehash() limitlist newlimits; bool seen_default = false; - for (auto& [_, c] : ServerInstance->Config->ConfTags("maxlist")) + for (const auto& [_, c] : ServerInstance->Config->ConfTags("maxlist")) { const std::string mname = c->getString("mode"); if (!mname.empty() && !stdalgo::string::equalsci(mname, name) && !(mname.length() == 1 && GetModeChar() == mname[0])) |
