Make MRUManager::Remove work

Originally committed to SVN as r4347.
This commit is contained in:
Thomas Goyne 2010-05-23 06:58:01 +00:00
parent d5df0fd545
commit 9fc28fc1d4
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ void MRUManager::Remove(const std::string &key, const std::string &entry) {
MRUMap::iterator index;
if ((index = mru.find(key)) != mru.end()) {
MRUListMap map = *index->second;
MRUListMap &map = *index->second;
for (MRUListMap::iterator map_idx = map.begin(); map_idx != map.end();) {
if (map_idx->second == entry)
map.erase(map_idx++);