Browse Source

[master] Removed use of const iterator in the call to erase.

The erase function was called on the const_iterator which caused build
failures on Linux boxes with gcc. This fix was okayed on jabber.
Marcin Siodelski 10 years ago
parent
commit
e40b70f833
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/log/message_initializer.cc

+ 1 - 1
src/lib/log/message_initializer.cc

@@ -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]);