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_callerid.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/m_callerid.cpp') diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp index 8ee4d8d2f..4b392ae93 100644 --- a/src/modules/m_callerid.cpp +++ b/src/modules/m_callerid.cpp @@ -63,7 +63,7 @@ public: { std::ostringstream oss; oss << lastnotify; - for (const auto& u : accepting) + for (const auto* u : accepting) { if (human) oss << ' ' << u->nick; @@ -102,7 +102,7 @@ struct CallerIDExtInfo final void* old = GetRaw(container); if (old) this->Delete(nullptr, old); - auto dat = new callerid_data(); + auto* dat = new callerid_data(); SetRaw(container, dat); irc::commasepstream s(value); @@ -112,7 +112,7 @@ struct CallerIDExtInfo final while (s.GetToken(tok)) { - auto u = ServerInstance->Users.Find(tok, true); + auto* u = ServerInstance->Users.Find(tok, true); if (u && !u->quitting) { if (dat->accepting.insert(u).second) @@ -140,7 +140,7 @@ struct CallerIDExtInfo final callerid_data* dat = static_cast(item); // We need to walk the list of users on our accept list, and remove ourselves from their wholistsme. - for (const auto& user : dat->accepting) + for (auto* user : dat->accepting) { callerid_data* target = this->Get(user, false); if (!target) @@ -272,7 +272,7 @@ public: callerid_data* dat = extInfo.Get(user, false); if (dat) { - for (const auto& accepted : dat->accepting) + for (const auto* accepted : dat->accepting) user->WriteNumeric(RPL_ACCEPTLIST, accepted->nick); } user->WriteNumeric(RPL_ENDOFACCEPT, "End of ACCEPT list"); @@ -378,7 +378,7 @@ private: return; // Iterate over the list of people who accept me, and remove all entries - for (const auto& dat : userdata->wholistsme) + for (auto* dat : userdata->wholistsme) { // Find me on their callerid list if (!dat->accepting.erase(who)) -- cgit v1.3.1-10-gc9f91