mirror of
https://github.com/anope/anope.git
synced 2026-07-07 02:23:12 +02:00
Start migrating to range-based for loops.
This commit is contained in:
@@ -24,9 +24,9 @@ class RatboxProto : public IRCDProto
|
||||
if (bi && bi->introduced)
|
||||
return bi;
|
||||
|
||||
for (botinfo_map::iterator it = BotListByNick->begin(), it_end = BotListByNick->end(); it != it_end; ++it)
|
||||
if (it->second->introduced)
|
||||
return it->second;
|
||||
for (const auto &[_, bi] : *BotListByNick)
|
||||
if (bi->introduced)
|
||||
return bi;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user