From 9cbdaefe5887f62419e05ce0598c0ba865aa2625 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 17 Nov 2021 18:00:00 +0100 Subject: [PATCH] Moved a decrement operator and an increment operator from postfix to prefix. --- es-app/src/FileFilterIndex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-app/src/FileFilterIndex.cpp b/es-app/src/FileFilterIndex.cpp index 53dfba2d5..a8a2ac1f6 100644 --- a/es-app/src/FileFilterIndex.cpp +++ b/es-app/src/FileFilterIndex.cpp @@ -656,7 +656,7 @@ void FileFilterIndex::manageIndexEntry(std::map* 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* index, if (index->find(key) == index->cend()) (*index)[key] = 1; else - (index->at(key))++; + ++(index->at(key)); } }