]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Removed const for an iterator used in erase
authorFrancis Dupont <fdupont@isc.org>
Thu, 12 Apr 2018 09:14:01 +0000 (11:14 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 12 Apr 2018 09:14:01 +0000 (11:14 +0200)
src/lib/dhcpsrv/client_class_def.cc

index ca91116c7fb1287efd83953c1d08d2431f760195..91158d92054f4edab921d20f3e2456e2a77b2608 100644 (file)
@@ -250,8 +250,8 @@ ClientClassDictionary::findClass(const std::string& name) const {
 
 void
 ClientClassDictionary::removeClass(const std::string& name) {
-    for (ClientClassDefList::const_iterator this_class = list_->cbegin();
-         this_class != list_->cend(); ++this_class) {
+    for (ClientClassDefList::iterator this_class = list_->begin();
+         this_class != list_->end(); ++this_class) {
         if ((*this_class)->getName() == name) {
             list_->erase(this_class);
             break;