Utils: Use emplace_back instead of push_back

Saves copy operations
This commit is contained in:
tt2468 2021-09-25 19:34:05 -07:00
parent 2218b7956c
commit 181003af89

View File

@ -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;