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_customprefix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_customprefix.cpp') diff --git a/src/modules/m_customprefix.cpp b/src/modules/m_customprefix.cpp index 20cec66c2..5cfb0fe3f 100644 --- a/src/modules/m_customprefix.cpp +++ b/src/modules/m_customprefix.cpp @@ -55,7 +55,7 @@ class ModuleCustomPrefix : public Module void init() override { - for (auto& [_, tag] : ServerInstance->Config->ConfTags("customprefix")) + for (const auto& [_, tag] : ServerInstance->Config->ConfTags("customprefix")) { const std::string name = tag->getString("name"); if (name.empty()) -- cgit v1.3.1-10-gc9f91