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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user