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_chghost.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_chghost.cpp') diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index fb4d6ade0..b2a8b8b59 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -48,7 +48,7 @@ public: return CmdResult::FAILURE; } - for (const auto& chr : parameters[1]) + for (const auto chr : parameters[1]) { if (!hostmap.test(static_cast(chr))) { @@ -57,7 +57,7 @@ public: } } - auto dest = ServerInstance->Users.Find(parameters[0]); + auto* dest = ServerInstance->Users.Find(parameters[0]); // Allow services to change the host of partially connected users. if (!dest || (!dest->IsFullyConnected() && !user->server->IsService())) @@ -102,7 +102,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) -- cgit v1.3.1-10-gc9f91