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_restrictchans.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_restrictchans.cpp') diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp index 649135273..5b589442e 100644 --- a/src/modules/m_restrictchans.cpp +++ b/src/modules/m_restrictchans.cpp @@ -61,7 +61,7 @@ class ModuleRestrictChans : public Module void ReadConfig(ConfigStatus& status) override { AllowChans newallows; - for (auto& [_, tag] : ServerInstance->Config->ConfTags("allowchannel")) + for (const auto& [_, tag] : ServerInstance->Config->ConfTags("allowchannel")) { const std::string name = tag->getString("name"); if (name.empty()) -- cgit v1.3.1-10-gc9f91