From 69aab925daf0aaf8289d58429680a4a9dbd89dab Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 1 Oct 2022 22:26:26 +0100 Subject: Modernize an old-style loop that was previously missed. --- include/modules/ldap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/modules') 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 keys() const { std::vector 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; } -- cgit v1.3.1-10-gc9f91