diff options
| author | 2021-04-06 20:06:18 +0100 | |
|---|---|---|
| committer | 2021-04-07 10:36:11 +0100 | |
| commit | 942fd2bcfd384a12c900999fe663202c87319a68 (patch) | |
| tree | c2bad1906af27afbc3c7d96c3e5ca3c27c83f090 /src/inspircd.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
Switch simple iterator loops to use range-based for loops.
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index a934a5b62..680d4b5b2 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -361,9 +361,8 @@ namespace std::cout << con_red << "Warning!" << con_reset << " Some of your listener" << (pl.size() == 1 ? "s" : "") << " failed to bind:" << std::endl << std::endl; - for (FailedPortList::const_iterator iter = pl.begin(); iter != pl.end(); ++iter) + for (const auto& fp : pl) { - const FailedPort& fp = *iter; std::cout << " " << con_bright << fp.sa.str() << con_reset << ": " << strerror(fp.error) << '.' << std::endl << " " << "Created from <bind> tag at " << fp.tag->source.str() << std::endl << std::endl; |
