mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15: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;
|
// LOG(LogDebug) << "Couldn't find entry in index! " << key;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
(index->at(key))--;
|
--(index->at(key));
|
||||||
if (index->at(key) <= 0) {
|
if (index->at(key) <= 0) {
|
||||||
index->erase(key);
|
index->erase(key);
|
||||||
}
|
}
|
||||||
|
@ -667,6 +667,6 @@ void FileFilterIndex::manageIndexEntry(std::map<std::string, int>* index,
|
||||||
if (index->find(key) == index->cend())
|
if (index->find(key) == index->cend())
|
||||||
(*index)[key] = 1;
|
(*index)[key] = 1;
|
||||||
else
|
else
|
||||||
(index->at(key))++;
|
++(index->at(key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue