From 80004246536f9a96fb184a41757d89bb0aacdaf2 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 24 Nov 2021 12:28:36 +0000 Subject: Squash a long form loop that was merged in from the insp3 branch. --- src/modules/m_spanningtree/utils.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/modules/m_spanningtree/utils.cpp') diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index 1a0223858..ce822b607 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -386,12 +386,8 @@ std::string SpanningTreeUtilities::BuildLinkString(uint16_t proto, Module* mod) void SpanningTreeUtilities::SendListLimits(Channel* chan, TreeSocket* sock) { std::stringstream buffer; - const ModeParser::ListModeList& listmodes = ServerInstance->Modes.GetListModes(); - for (ModeParser::ListModeList::const_iterator i = listmodes.begin(); i != listmodes.end(); ++i) - { - ListModeBase* lm = *i; + for (const auto& lm : ServerInstance->Modes.GetListModes()) buffer << lm->GetModeChar() << " " << lm->GetLimit(chan) << " "; - } std::string bufferstr = buffer.str(); if (bufferstr.empty()) -- cgit v1.3.1-10-gc9f91