aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_dccallow.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_dccallow.cpp
parentFix some unnecessary string copies. (diff)
Qualify auto correctly in all cases.
Diffstat (limited to 'src/modules/m_dccallow.cpp')
-rw-r--r--src/modules/m_dccallow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp
index a50ab5722..0b315652b 100644
--- a/src/modules/m_dccallow.cpp
+++ b/src/modules/m_dccallow.cpp
@@ -129,7 +129,7 @@ public:
// Remove the old list and create a new one.
Unset(user, false);
- auto list = new dccallowlist();
+ auto* list = new dccallowlist();
irc::spacesepstream ts(value);
while (!ts.StreamEnd())
@@ -235,7 +235,7 @@ public:
}
std::string nick(parameters[0], 1);
- auto target = ServerInstance->Users.FindNick(nick, true);
+ auto* target = ServerInstance->Users.FindNick(nick, true);
if (target && !target->quitting)
{
if (action == '-')
@@ -478,7 +478,7 @@ public:
std::string filename = buf.substr(first, s);
bool found = false;
- for (auto& bf : bfl)
+ for (const auto& bf : bfl)
{
if (InspIRCd::Match(filename, bf.filemask, ascii_case_insensitive_map))
{