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_helpop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_helpop.cpp') diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp index dff2803ea..351440728 100644 --- a/src/modules/m_helpop.cpp +++ b/src/modules/m_helpop.cpp @@ -119,7 +119,7 @@ class ModuleHelpop if (tags.empty()) throw ModuleException("You have loaded the helpop module but not configured any help topics!"); - for (auto& [_, tag] : tags) + for (const auto& [_, tag] : tags) { // Attempt to read the help key. const std::string key = tag->getString("key"); -- cgit v1.3.1-10-gc9f91