From: Marcin Siodelski Date: Tue, 14 Apr 2015 11:56:39 +0000 (+0200) Subject: [3198] Use iterator, rather than const_iterator for map::erase. X-Git-Tag: trac3812_base~2^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7026f355b3dd57f85fda413a38f08b306417c5a5;p=thirdparty%2Fkea.git [3198] Use iterator, rather than const_iterator for map::erase. --- diff --git a/src/lib/log/message_dictionary.cc b/src/lib/log/message_dictionary.cc index d2f6159d1e..cc180e19f7 100644 --- a/src/lib/log/message_dictionary.cc +++ b/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) {