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/modules/m_spanningtree/treeserver.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_spanningtree/treeserver.cpp') 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 -- cgit v1.3.1-10-gc9f91