Browse Source

[3198] Use iterator, rather than const_iterator for map::erase.

Marcin Siodelski 10 years ago
parent
commit
7026f355b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/log/message_dictionary.cc

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

@@ -58,7 +58,7 @@ MessageDictionary::replace(const std::string& ident, const std::string& text) {
 
 bool
 MessageDictionary::erase(const std::string& ident, const std::string& text) {
-    const_iterator mes = dictionary_.find(ident);
+    Dictionary::iterator mes = dictionary_.find(ident);
     // Both the ID and the text must match.
     bool found = (mes != dictionary_.end() && (mes->second == text));
     if (found) {