diff options
| author | 2021-04-06 20:06:18 +0100 | |
|---|---|---|
| committer | 2021-04-07 10:36:11 +0100 | |
| commit | 942fd2bcfd384a12c900999fe663202c87319a68 (patch) | |
| tree | c2bad1906af27afbc3c7d96c3e5ca3c27c83f090 /src/inspstring.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
| download | inspircd++-942fd2bcfd384a12c900999fe663202c87319a68.tar.gz inspircd++-942fd2bcfd384a12c900999fe663202c87319a68.tar.bz2 inspircd++-942fd2bcfd384a12c900999fe663202c87319a68.zip | |
Switch simple iterator loops to use range-based for loops.
Diffstat (limited to 'src/inspstring.cpp')
| -rw-r--r-- | src/inspstring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspstring.cpp b/src/inspstring.cpp index a94b46fac..e231ec398 100644 --- a/src/inspstring.cpp +++ b/src/inspstring.cpp @@ -225,10 +225,10 @@ bool TokenList::operator==(const TokenList& other) const if (tokens.size() != other.tokens.size()) return false; - for (insp::flat_set<std::string>::const_iterator iter = tokens.begin(); iter != tokens.end(); ++iter) + for (const auto& token : tokens) { // Both sets must contain the same tokens to be equal. - if (other.tokens.find(*iter) == other.tokens.end()) + if (other.tokens.find(token) == other.tokens.end()) return false; } |
