diff options
| author | 2022-07-30 17:21:47 +0100 | |
|---|---|---|
| committer | 2022-07-30 19:15:41 +0100 | |
| commit | 3c455a8511f8c72552afb6ebe35a8e7c9b9af979 (patch) | |
| tree | 603c14aa8d8dfafb931cf3ca1b3503fdfc979528 /src/inspircd.cpp | |
| parent | Add support for clearing the target of a dynamic_reference. (diff) | |
Modernize various minor legacy C++isms.
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index f7b08baab..f3d998f2f 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -407,10 +407,10 @@ namespace void InspIRCd::Cleanup() { // Close all listening sockets - for (unsigned int i = 0; i < ports.size(); i++) + for (auto& port : ports) { - ports[i]->Cull(); - delete ports[i]; + port->Cull(); + delete port; } ports.clear(); |
