Use more STL for vector insertion/removal. (#1284)

This commit is contained in:
David Anderson
2020-06-13 15:57:02 -07:00
committed by GitHub
parent 7b887ee9f6
commit 3b386379dd
4 changed files with 31 additions and 18 deletions
+2 -1
View File
@@ -379,7 +379,8 @@ void ClientPrefs::ClearQueryCache(int serial)
if (op && op->PullQueryType() == Query_SelectData && op->PullQuerySerial() == serial)
{
op->Destroy();
ke::RemoveAt(&cachedQueries, iter--);
cachedQueries.erase(cachedQueries.begin() + iter);
iter--;
}
}
}