diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-06 13:23:37 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-06 13:23:37 +0000 |
commit | a9ab0c72a69cacc597e91870f50622de0334f9a7 (patch) | |
tree | 57665546eb565fa608a203aca5f4ac65dc57a6f3 /src/regchannel.cpp | |
parent | de918ef9cfb652b20b215d0d2f6622eb9a117b2c (diff) |
Use auto in places where the type is unambiguous.
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r-- | src/regchannel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 42d66f5db..912a3e5b2 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -525,7 +525,7 @@ void ChannelInfo::ClearAccess() AutoKick *ChannelInfo::AddAkick(const Anope::string &user, NickCore *akicknc, const Anope::string &reason, time_t t, time_t lu) { - AutoKick *autokick = new AutoKick(); + auto *autokick = new AutoKick(); autokick->ci = this; autokick->nc = akicknc; autokick->reason = reason; @@ -542,7 +542,7 @@ AutoKick *ChannelInfo::AddAkick(const Anope::string &user, NickCore *akicknc, co AutoKick *ChannelInfo::AddAkick(const Anope::string &user, const Anope::string &mask, const Anope::string &reason, time_t t, time_t lu) { - AutoKick *autokick = new AutoKick(); + auto *autokick = new AutoKick(); autokick->ci = this; autokick->mask = mask; autokick->nc = NULL; |