1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 11:03:12 +02:00

Use auto in as many places as possible.

This commit is contained in:
Sadie Powell
2026-03-05 18:03:44 +00:00
parent 98703052cc
commit 12545ccbde
72 changed files with 198 additions and 198 deletions
+2 -2
View File
@@ -466,7 +466,7 @@ int16_t ChannelInfo::GetLevel(const Anope::string &priv) const
return ACCESS_INVALID;
}
Anope::map<int16_t>::const_iterator it = this->levels.find(priv);
auto it = this->levels.find(priv);
if (it == this->levels.end())
return 0;
return it->second;
@@ -514,7 +514,7 @@ Anope::string ChannelInfo::GetIdealBan(User *u) const
ChannelInfo *ChannelInfo::Find(const Anope::string &name)
{
registered_channel_map::const_iterator it = RegisteredChannelList->find(name);
auto it = RegisteredChannelList->find(name);
if (it != RegisteredChannelList->end())
{
it->second->QueueUpdate();