1
0
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:
Sadie Powell
2023-10-10 21:14:50 +01:00
parent dc371aad6d
commit a3241065c5
146 changed files with 1157 additions and 1459 deletions
+3 -3
View File
@@ -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;
}