1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 15:36:38 +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
@@ -50,7 +50,7 @@ NickCore::~NickCore()
if (!this->chanaccess->empty())
Log(LOG_DEBUG) << "Non-empty chanaccess list in destructor!";
for (std::list<User *>::iterator it = this->users.begin(); it != this->users.end();)
for (auto it = this->users.begin(); it != this->users.end();)
{
User *user = *it++;
user->Logout();
@@ -243,7 +243,7 @@ void NickCore::GetChannelReferences(std::deque<ChannelInfo *> &queue)
NickCore *NickCore::Find(const Anope::string &nick)
{
nickcore_map::const_iterator it = NickCoreList->find(nick);
auto it = NickCoreList->find(nick);
if (it != NickCoreList->end())
{
it->second->QueueUpdate();