Fixed an issue where filter indices couldn't be reset.

This commit is contained in:
Leon Styhre 2021-02-04 23:54:04 +01:00
parent f5bc2f7c63
commit 222c75a65b
2 changed files with 2 additions and 2 deletions

View file

@ -618,7 +618,7 @@ void FileFilterIndex::manageIndexEntry(std::map<std::string, int>* index,
}
}
void FileFilterIndex::clearIndex(std::map<std::string, int> indexMap)
void FileFilterIndex::clearIndex(std::map<std::string, int>& indexMap)
{
indexMap.clear();
}

View file

@ -81,7 +81,7 @@ private:
void manageIndexEntry(std::map<std::string, int>* index, std::string key, bool remove);
void clearIndex(std::map<std::string, int> indexMap);
void clearIndex(std::map<std::string, int>& indexMap);
std::string mTextFilter;
bool mFilterByText;