mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
PatchEngine: Give Patch and PatchEntry default member initializers
Avoids potentially using the values uninitialized. While we're at it, also drop the prefixed underscores from one of the constructors.
This commit is contained in:
@ -42,7 +42,7 @@ void CPatchAddEdit::CreateGUIControls(int _selection)
|
||||
if (_selection == -1)
|
||||
{
|
||||
tempEntries.clear();
|
||||
tempEntries.emplace_back(PatchEngine::PATCH_8BIT, 0x00000000, 0x00000000);
|
||||
tempEntries.emplace_back();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -165,7 +165,7 @@ void CPatchAddEdit::AddEntry(wxCommandEvent& event)
|
||||
if (!UpdateTempEntryData(itCurEntry))
|
||||
return;
|
||||
|
||||
PatchEngine::PatchEntry peEmptyEntry(PatchEngine::PATCH_8BIT, 0x00000000, 0x00000000);
|
||||
PatchEngine::PatchEntry peEmptyEntry;
|
||||
++itCurEntry;
|
||||
currentItem++;
|
||||
itCurEntry = tempEntries.insert(itCurEntry, peEmptyEntry);
|
||||
|
Reference in New Issue
Block a user