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/extra/m_ldap.cpp | |
| parent | Implement support for random spamtrap channels in the LIST output. (diff) | |
| download | inspircd++-ef24ec632da12f272eddcf9924eacde9260597a2.tar.gz inspircd++-ef24ec632da12f272eddcf9924eacde9260597a2.tar.bz2 inspircd++-ef24ec632da12f272eddcf9924eacde9260597a2.zip | |
Constify variables within loops.
Diffstat (limited to 'src/modules/extra/m_ldap.cpp')
| -rw-r--r-- | src/modules/extra/m_ldap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_ldap.cpp b/src/modules/extra/m_ldap.cpp index d7d5cbfb3..09c9a3f6e 100644 --- a/src/modules/extra/m_ldap.cpp +++ b/src/modules/extra/m_ldap.cpp @@ -545,7 +545,7 @@ class ModuleLDAP : public Module { ServiceMap conns; - for (auto& [_, tag] : ServerInstance->Config->ConfTags("database")) + for (const auto& [_, tag] : ServerInstance->Config->ConfTags("database")) { if (!stdalgo::string::equalsci(tag->getString("module"), "ldap")) continue; |
