1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 14:36:39 +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
+1 -3
View File
@@ -137,10 +137,8 @@ class ModuleSQLOper : public Module
~ModuleSQLOper()
{
for (nickcore_map::const_iterator it = NickCoreList->begin(), it_end = NickCoreList->end(); it != it_end; ++it)
for (const auto &[_, nc] : *NickCoreList)
{
NickCore *nc = it->second;
if (nc->o && dynamic_cast<SQLOper *>(nc->o))
{
delete nc->o;