Parcourir la source

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

Marcin Siodelski il y a 10 ans
Parent
commit
7026f355b3
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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) {