]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3198] Use iterator, rather than const_iterator for map::erase.
authorMarcin Siodelski <marcin@isc.org>
Tue, 14 Apr 2015 11:56:39 +0000 (13:56 +0200)
committerMarcin Siodelski <marcin@isc.org>
Tue, 14 Apr 2015 11:56:39 +0000 (13:56 +0200)
src/lib/log/message_dictionary.cc

index d2f6159d1e2c692b0c7e692b1a8551976c0d35b3..cc180e19f7cbea6c7e36815e88eef456fc13fe02 100644 (file)
@@ -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) {