From b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 10 Jan 2023 23:02:45 +0000 Subject: Qualify auto correctly in all cases. --- src/modules/m_anticaps.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_anticaps.cpp') diff --git a/src/modules/m_anticaps.cpp b/src/modules/m_anticaps.cpp index d4dce8e16..b1bd477cf 100644 --- a/src/modules/m_anticaps.cpp +++ b/src/modules/m_anticaps.cpp @@ -196,11 +196,11 @@ public: const auto& tag = ServerInstance->Config->ConfValue("anticaps"); uppercase.reset(); - for (const auto& chr : tag->getString("uppercase", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1)) + for (const auto chr : tag->getString("uppercase", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1)) uppercase.set(static_cast(chr)); lowercase.reset(); - for (const auto& chr : tag->getString("lowercase", "abcdefghijklmnopqrstuvwxyz", 1)) + for (const auto chr : tag->getString("lowercase", "abcdefghijklmnopqrstuvwxyz", 1)) lowercase.set(static_cast(chr)); } @@ -251,7 +251,7 @@ public: // Count the characters to see how many upper case and // ignored (non upper or lower) characters there are. size_t upper = 0; - for (const auto& chr : msgbody) + for (const auto chr : msgbody) { if (uppercase.test(static_cast(chr))) upper += 1; -- cgit v1.3.1-10-gc9f91