Back out clearly inconsequential/useless .reserve() calls

This commit is contained in:
Henrik Rydgård committed 2023-12-29 08:27:56 +01:00
1 parent c97d5ef23f
commit 126d88ecfc
25 files changed
+14 -61

No files matched your search

-1
View File
@@ -43,7 +43,6 @@ std::vector<InputMapping> tabRightKeys;
static std::unordered_map<InputDeviceID, int> uiFlipAnalogY;
static void AppendKeys(std::vector<InputMapping> &keys, const std::vector<InputMapping> &newKeys) {
keys.reserve(newKeys.size());
for (auto iter = newKeys.begin(); iter != newKeys.end(); ++iter) {
keys.push_back(*iter);
}