aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_helpop.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-01 18:10:11 +0100
committerGravatar Sadie Powell2021-04-01 18:10:11 +0100
commitef24ec632da12f272eddcf9924eacde9260597a2 (patch)
tree1d9561525e174249c2776fae38ce6c757a17a901 /src/modules/m_helpop.cpp
parentImplement support for random spamtrap channels in the LIST output. (diff)
Constify variables within loops.
Diffstat (limited to 'src/modules/m_helpop.cpp')
-rw-r--r--src/modules/m_helpop.cpp2
1 files changed, 1 insertions, 1 deletions
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");