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

View File

@@ -943,7 +943,7 @@ static BOOL CALLBACK EnumResLangProc( HMODULE hModule, LPCTSTR lpszType, LPCTSTR
if (IS_INTRESOURCE(lpszName))
{
std::vector<std::pair<int,WORD>> &oldStrings=*(std::vector<std::pair<int,WORD>>*)lParam;
oldStrings.push_back(std::pair<int,WORD>(PtrToInt(lpszName),wIDLanguage));
oldStrings.emplace_back(PtrToInt(lpszName),wIDLanguage);
}
return TRUE;
}