mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Utils: Use emplace_back instead of push_back
Saves copy operations
This commit is contained in:
parent
2218b7956c
commit
181003af89
@ -221,7 +221,7 @@ std::vector<std::string> Utils::Obs::ListHelper::GetHotkeyNameList()
|
||||
|
||||
std::vector<std::string> ret;
|
||||
for (auto hotkey : hotkeys) {
|
||||
ret.push_back(obs_hotkey_get_name(hotkey));
|
||||
ret.emplace_back(obs_hotkey_get_name(hotkey));
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user