mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -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:
@ -79,11 +79,7 @@ void NewPatchDialog::ConnectWidgets()
|
||||
|
||||
void NewPatchDialog::AddEntry()
|
||||
{
|
||||
PatchEngine::PatchEntry entry;
|
||||
entry.type = PatchEngine::PATCH_8BIT;
|
||||
entry.address = entry.value = 0;
|
||||
|
||||
m_patch.entries.push_back(entry);
|
||||
m_patch.entries.emplace_back();
|
||||
|
||||
m_entry_layout->addWidget(CreateEntry(static_cast<int>(m_patch.entries.size() - 1)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user