aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_sethost.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_sethost.cpp
parentFix some unnecessary string copies. (diff)
Qualify auto correctly in all cases.
Diffstat (limited to 'src/modules/m_sethost.cpp')
-rw-r--r--src/modules/m_sethost.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp
index bd671049b..e1534f8dd 100644
--- a/src/modules/m_sethost.cpp
+++ b/src/modules/m_sethost.cpp
@@ -46,7 +46,7 @@ public:
return CmdResult::FAILURE;
}
- for (const auto& chr : parameters[0])
+ for (const auto chr : parameters[0])
{
if (!hostmap.test(static_cast<unsigned char>(chr)))
{
@@ -84,7 +84,7 @@ public:
const std::string hmap = tag->getString("charmap", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.-_/0123456789", 1);
CharState newhostmap;
- for (const auto& chr : hmap)
+ for (const auto chr : hmap)
{
// A hostname can not contain NUL, LF, CR, or SPACE.
if (chr == 0x00 || chr == 0x0A || chr == 0x0D || chr == 0x20)