Tentative solution for bug #38

This commit is contained in:
Kayne Ruse
2015-01-02 07:09:04 +11:00
parent 963aca218a
commit eb897c81e8
13 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ void AccountManager::UnloadAll() {
elementMap.clear();
}
void AccountManager::UnloadIf(std::function<bool(std::pair<const int, AccountData>)> fn) {
void AccountManager::UnloadIf(std::function<bool(std::pair<const int, AccountData const&>)> fn) {
//replicate std::remove_if, using custom code
std::map<int, AccountData>::iterator it = elementMap.begin();
while (it != elementMap.end()) {