Replace 'push*' -> 'emplace*' if possible and use std::move()

This commit is contained in:
germanaizek
2022-05-12 16:37:52 +03:00
committed by ge0rdi
parent 4f362760b6
commit a20215d9da
10 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -1778,7 +1778,7 @@ bool MenuSkin::LoadSkin( HMODULE hMod, const wchar_t *variation, const wchar_t *
var.label=token;
if (var.labelEn.IsEmpty())
var.labelEn=var.label;
Variations.push_back(std::pair<int,Variation>(res,var));
Variations.emplace_back(res,var);
LOG_MENU(LOG_OPEN,L"Variation found: name=%s, id=%d",token,res);
}
else