aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treeserver.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-10 23:02:45 +0000
committerGravatar Sadie Powell2023-01-10 23:30:34 +0000
commitb2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 (patch)
tree3319a65d5472ec30780560003264fa815dbfd711 /src/modules/m_spanningtree/treeserver.cpp
parentFix some unnecessary string copies. (diff)
Qualify auto correctly in all cases.
Diffstat (limited to 'src/modules/m_spanningtree/treeserver.cpp')
-rw-r--r--src/modules/m_spanningtree/treeserver.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/treeserver.cpp b/src/modules/m_spanningtree/treeserver.cpp
index efd422986..ed84ca70f 100644
--- a/src/modules/m_spanningtree/treeserver.cpp
+++ b/src/modules/m_spanningtree/treeserver.cpp
@@ -144,7 +144,7 @@ void TreeServer::FinishBurstInternal()
behind_bursting--;
ServerInstance->Logs.Debug(MODNAME, "FinishBurstInternal() %s behind_bursting %u", GetName().c_str(), behind_bursting);
- for (const auto& child : Children)
+ for (auto* child : Children)
child->FinishBurstInternal();
}
@@ -201,7 +201,7 @@ void TreeServer::SQuitInternal(unsigned int& num_lost_servers, bool error)
ServerInstance->Logs.Debug(MODNAME, "Server %s lost in split", GetName().c_str());
- for (const auto& server : Children)
+ for (auto* server : Children)
server->SQuitInternal(num_lost_servers, error);
// Mark server as dead
@@ -266,7 +266,7 @@ void TreeServer::AddHashEntry()
Cullable::Result TreeServer::Cull()
{
// Recursively cull all servers that are under us in the tree
- for (const auto& server : Children)
+ for (auto* server : Children)
server->Cull();
if (!IsRoot())
@@ -277,7 +277,7 @@ Cullable::Result TreeServer::Cull()
TreeServer::~TreeServer()
{
// Recursively delete all servers that are under us in the tree first
- for (const auto& child : Children)
+ for (const auto* child : Children)
delete child;
// Delete server user unless it's us