diff options
| author | 2022-10-01 22:26:26 +0100 | |
|---|---|---|
| committer | 2022-10-01 22:26:26 +0100 | |
| commit | 69aab925daf0aaf8289d58429680a4a9dbd89dab (patch) | |
| tree | 23ac72c5437d55c451c7c4ccc8d427cf59c5fd1c /include/modules/ldap.h | |
| parent | Replace foo.erase(foo.{size|end}()-1) with foo.pop_back(). (diff) | |
Modernize an old-style loop that was previously missed.
Diffstat (limited to 'include/modules/ldap.h')
| -rw-r--r-- | include/modules/ldap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/modules/ldap.h b/include/modules/ldap.h index 491747479..f3cc15b4a 100644 --- a/include/modules/ldap.h +++ b/include/modules/ldap.h @@ -59,8 +59,8 @@ struct LDAPAttributes final const std::vector<std::string> keys() const { std::vector<std::string> k; - for (const_iterator it = this->begin(), it_end = this->end(); it != it_end; ++it) - k.push_back(it->first); + for (const auto& [key, _] : *this) + k.push_back(key); return k; } |
