mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 15:49:50 -06:00
Use emplace_* functions where in-place construction is preferable
This commit is contained in:
@ -113,7 +113,7 @@ void CARCodeAddEdit::SaveCheatData(wxCommandEvent& WXUNUSED (event))
|
||||
u32 addr = std::stoul(pieces[0], nullptr, 16);
|
||||
u32 value = std::stoul(pieces[1], nullptr, 16);
|
||||
|
||||
decryptedLines.push_back(ActionReplay::AREntry(addr, value));
|
||||
decryptedLines.emplace_back(addr, value);
|
||||
continue;
|
||||
}
|
||||
else if (pieces.size() == 1)
|
||||
|
@ -48,7 +48,7 @@ void CPatchAddEdit::CreateGUIControls(int _selection)
|
||||
if (_selection == -1)
|
||||
{
|
||||
tempEntries.clear();
|
||||
tempEntries.push_back(PatchEngine::PatchEntry(PatchEngine::PATCH_8BIT, 0x00000000, 0x00000000));
|
||||
tempEntries.emplace_back(PatchEngine::PATCH_8BIT, 0x00000000, 0x00000000);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user