diff options
| author | 2023-01-10 23:02:45 +0000 | |
|---|---|---|
| committer | 2023-01-10 23:30:34 +0000 | |
| commit | b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 (patch) | |
| tree | 3319a65d5472ec30780560003264fa815dbfd711 /src/cull.cpp | |
| parent | Fix some unnecessary string copies. (diff) | |
Qualify auto correctly in all cases.
Diffstat (limited to 'src/cull.cpp')
| -rw-r--r-- | src/cull.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cull.cpp b/src/cull.cpp index 165fe94ce..c4bb4ab84 100644 --- a/src/cull.cpp +++ b/src/cull.cpp @@ -68,7 +68,7 @@ void CullList::Apply() while (!SQlist.empty()) { working.swap(SQlist); - for (const auto& u : working) + for (auto* u : working) { ServerInstance->SNO.WriteGlobalSno('a', "User %s SendQ exceeds connect class maximum of %lu", u->nick.c_str(), u->GetClass()->hardsendqmax); @@ -80,7 +80,7 @@ void CullList::Apply() std::set<Cullable*> gone; std::vector<Cullable*> queue; queue.reserve(list.size() + 32); - for (auto& c : list) + for (auto* c : list) { if (gone.insert(c).second) { @@ -106,7 +106,7 @@ void CullList::Apply() } list.clear(); - for (auto& c : queue) + for (auto* c : queue) delete c; if (!list.empty()) @@ -118,7 +118,7 @@ void CullList::Apply() void ActionList::Run() { - for (auto& action : list) + for (auto* action : list) action->Call(); list.clear(); } |
