mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-11 17:37:22 +10:00
Replace 'push*' -> 'emplace*' if possible and use std::move()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user