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.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 3f57e6b68..5ff3b8041 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -488,7 +488,7 @@ void ModuleManager::LoadAll() LoadCoreModules(servicemap); // Step 1: load all of the modules. - for (auto& [_, tag] : ServerInstance->Config->ConfTags("module")) + for (const auto& [_, tag] : ServerInstance->Config->ConfTags("module")) { const std::string shortname = tag->getString("name"); if (shortname.empty()) -- cgit v1.3.1-10-gc9f91