summaryrefslogtreecommitdiffstats
path: root/src/lib/hooks/libinfo.cc
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2024-01-12 15:31:50 +0100
committerRazvan Becheriu <razvan@isc.org>2024-01-22 16:49:59 +0100
commit1b4d7b0293bca6657d1f798e6e4e65ce95d2dca4 (patch)
treefc89d85f5dd097dd85a2921ce1382980e012a423 /src/lib/hooks/libinfo.cc
parent[#3119] replace const auto with auto const (diff)
downloadkea-1b4d7b0293bca6657d1f798e6e4e65ce95d2dca4.tar.xz
kea-1b4d7b0293bca6657d1f798e6e4e65ce95d2dca4.zip
[#3119] use range based for loop or BOOST_FOREACH
Diffstat (limited to 'src/lib/hooks/libinfo.cc')
-rw-r--r--src/lib/hooks/libinfo.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/hooks/libinfo.cc b/src/lib/hooks/libinfo.cc
index 2abf3a1d47..7e13588cf4 100644
--- a/src/lib/hooks/libinfo.cc
+++ b/src/lib/hooks/libinfo.cc
@@ -19,12 +19,11 @@ std::vector<std::string>
extractNames(const isc::hooks::HookLibsCollection& libraries) {
std::vector<std::string> names;
- for (isc::hooks::HookLibsCollection::const_iterator it = libraries.begin();
- it != libraries.end(); ++it) {
- names.push_back(it->first);
+ for (auto const& it : libraries) {
+ names.push_back(it.first);
}
return (names);
}
-};
-};
+}
+}