From ef24ec632da12f272eddcf9924eacde9260597a2 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 1 Apr 2021 18:10:11 +0100 Subject: Constify variables within loops. --- src/modules/m_permchannels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_permchannels.cpp') diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index f91ed43c3..c87b41244 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -200,7 +200,7 @@ public: * Process config-defined list of permanent channels. * -- w00t */ - for (auto& [_, tag] : ServerInstance->Config->ConfTags("permchannels")) + for (const auto& [_, tag] : ServerInstance->Config->ConfTags("permchannels")) { std::string channel = tag->getString("channel"); std::string modes = tag->getString("modes"); -- cgit v1.3.1-10-gc9f91