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_dccallow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_dccallow.cpp') diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index e20bc3914..20e15bd71 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -590,7 +590,7 @@ class ModuleDCCAllow : public Module { bannedfilelist newbfl; - for (auto& [_, tag] : ServerInstance->Config->ConfTags("banfile")) + for (const auto& [_, tag] : ServerInstance->Config->ConfTags("banfile")) { BannedFileList bf; bf.filemask = tag->getString("pattern"); -- cgit v1.3.1-10-gc9f91