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_ldapauth.cpp | |
| parent | Implement support for random spamtrap channels in the LIST output. (diff) | |
Constify variables within loops.
Diffstat (limited to 'src/modules/m_ldapauth.cpp')
| -rw-r--r-- | src/modules/m_ldapauth.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_ldapauth.cpp b/src/modules/m_ldapauth.cpp index 6a015dc9e..f6d5e3111 100644 --- a/src/modules/m_ldapauth.cpp +++ b/src/modules/m_ldapauth.cpp @@ -338,7 +338,7 @@ public: LDAP.SetProvider("LDAP/" + tag->getString("dbid")); - for (auto& [_, wtag] : ServerInstance->Config->ConfTags("ldapwhitelist")) + for (const auto& [_, wtag] : ServerInstance->Config->ConfTags("ldapwhitelist")) { std::string cidr = wtag->getString("cidr"); if (!cidr.empty()) { @@ -346,7 +346,7 @@ public: } } - for (auto& [_, rtag] : ServerInstance->Config->ConfTags("ldaprequire")) + for (const auto& [_, rtag] : ServerInstance->Config->ConfTags("ldaprequire")) { const std::string attr = rtag->getString("attribute"); const std::string val = rtag->getString("value"); |
