diff options
| author | 2021-04-01 18:10:11 +0100 | |
|---|---|---|
| committer | 2021-04-01 18:10:11 +0100 | |
| commit | ef24ec632da12f272eddcf9924eacde9260597a2 (patch) | |
| tree | 1d9561525e174249c2776fae38ce6c757a17a901 /src/modules/m_codepage.cpp | |
| parent | Implement support for random spamtrap channels in the LIST output. (diff) | |
Constify variables within loops.
Diffstat (limited to 'src/modules/m_codepage.cpp')
| -rw-r--r-- | src/modules/m_codepage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_codepage.cpp b/src/modules/m_codepage.cpp index 3ce821418..69bd6c1ad 100644 --- a/src/modules/m_codepage.cpp +++ b/src/modules/m_codepage.cpp @@ -144,7 +144,7 @@ class ModuleCodepage AllowedChars newallowedchars; AllowedChars newallowedfrontchars; - for (auto& [_, tag] : ServerInstance->Config->ConfTags("cpchars")) + for (const auto& [_, tag] : ServerInstance->Config->ConfTags("cpchars")) { unsigned char begin = tag->getUInt("begin", tag->getUInt("index", 0), 1, UCHAR_MAX); if (!begin) @@ -180,7 +180,7 @@ class ModuleCodepage for (size_t i = 0; i < UCHAR_MAX; ++i) newcasemap[i] = i; - for (auto& [_, tag] : ServerInstance->Config->ConfTags("cpcase")) + for (const auto& [_, tag] : ServerInstance->Config->ConfTags("cpcase")) { unsigned char lower = tag->getUInt("lower", 0, 1, UCHAR_MAX); if (!lower) |
