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_dnsbl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_dnsbl.cpp') diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 202ccf1f0..fc1465f7a 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -328,7 +328,7 @@ class ModuleDNSBL : public Module, public Stats::EventListener { DNSBLConfList newentries; - for (auto& [_, tag] : ServerInstance->Config->ConfTags("dnsbl")) + for (const auto& [_, tag] : ServerInstance->Config->ConfTags("dnsbl")) { auto e = std::make_shared(); -- cgit v1.3.1-10-gc9f91