aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_anticaps.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-10 23:02:45 +0000
committerGravatar Sadie Powell2023-01-10 23:30:34 +0000
commitb2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 (patch)
tree3319a65d5472ec30780560003264fa815dbfd711 /src/modules/m_anticaps.cpp
parentFix some unnecessary string copies. (diff)
Qualify auto correctly in all cases.
Diffstat (limited to 'src/modules/m_anticaps.cpp')
-rw-r--r--src/modules/m_anticaps.cpp6
1 files changed, 3 insertions, 3 deletions
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<unsigned char>(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<unsigned char>(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<unsigned char>(chr)))
upper += 1;