mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Do not copy data when it is not needed
This commit is contained in:
parent
16922f8000
commit
e3ad30a517
8 changed files with 10 additions and 11 deletions
|
@ -219,7 +219,7 @@ namespace SDLUtil
|
|||
std::map<MyGUI::KeyCode, SDL_Keycode> reverseKeyMap(const std::map<SDL_Keycode, MyGUI::KeyCode>& map)
|
||||
{
|
||||
std::map<MyGUI::KeyCode, SDL_Keycode> result;
|
||||
for (auto [sdl, mygui] : map)
|
||||
for (auto& [sdl, mygui] : map)
|
||||
result[mygui] = sdl;
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue