]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Removed use of const iterator in the call to erase.
authorMarcin Siodelski <marcin@isc.org>
Mon, 11 May 2015 14:53:12 +0000 (16:53 +0200)
committerMarcin Siodelski <marcin@isc.org>
Mon, 11 May 2015 14:53:12 +0000 (16:53 +0200)
The erase function was called on the const_iterator which caused build
failures on Linux boxes with gcc. This fix was okayed on jabber.

src/lib/log/message_initializer.cc

index f52b18fdd7924c49f3af1a2088174a6466271a63..2e48d65c93b50c02b6a4fbbf5e5935e1b21986cc 100644 (file)
@@ -79,7 +79,7 @@ MessageInitializer::~MessageInitializer() {
         while (values_[i]) {
             // Check if the unloaded message is registered as duplicate. If it is,
             // remove it from the duplicates list.
-            LoggerDuplicatesList::const_iterator dup =
+            LoggerDuplicatesList::iterator dup =
                 std::find(global_logger_duplicates_->begin(),
                           global_logger_duplicates_->end(),
                           values_[i]);