mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
Moved a decrement operator and an increment operator from postfix to prefix.
This commit is contained in:
parent
af52d9b0ac
commit
9cbdaefe58
|
@ -656,7 +656,7 @@ void FileFilterIndex::manageIndexEntry(std::map<std::string, int>* index,
|
|||
// LOG(LogDebug) << "Couldn't find entry in index! " << key;
|
||||
}
|
||||
else {
|
||||
(index->at(key))--;
|
||||
--(index->at(key));
|
||||
if (index->at(key) <= 0) {
|
||||
index->erase(key);
|
||||
}
|
||||
|
@ -667,6 +667,6 @@ void FileFilterIndex::manageIndexEntry(std::map<std::string, int>* index,
|
|||
if (index->find(key) == index->cend())
|
||||
(*index)[key] = 1;
|
||||
else
|
||||
(index->at(key))++;
|
||||
++(index->at(key));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue