mirror of
https://github.com/anope/anope.git
synced 2026-06-30 18:06:39 +02:00
Start migrating to range-based for loops.
This commit is contained in:
+2
-2
@@ -17,8 +17,8 @@ Base::~Base()
|
||||
{
|
||||
if (this->references != NULL)
|
||||
{
|
||||
for (std::set<ReferenceBase *>::iterator it = this->references->begin(), it_end = this->references->end(); it != it_end; ++it)
|
||||
(*it)->Invalidate();
|
||||
for (auto *reference : *this->references)
|
||||
reference->Invalidate();
|
||||
delete this->references;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user