mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:10:06 +00:00
Make sure unordered map references aren't invalidated by reserving sufficient space
This commit is contained in:
parent
26a22d4e84
commit
8f4325f61a
7 changed files with 39 additions and 4 deletions
|
|
@ -46,6 +46,8 @@ public:
|
|||
|
||||
int row = 0;
|
||||
|
||||
hotkeys_.reserve(types::HotkeyIterator().count());
|
||||
|
||||
for (types::Hotkey hotkey : types::HotkeyIterator())
|
||||
{
|
||||
const std::string& labelText = types::GetHotkeyLongName(hotkey);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue