summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Cheats/GeckoCodeDiag.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-12-01 22:56:18 -0500
committerLioncash <mathew1800@gmail.com>2014-12-01 23:02:50 -0500
commit10bfbebc780fb3693741a72f258a5da2c3daffa1 (patch)
tree5c9a3360cf4d10dec94f7eaf242662be92f9427a /Source/Core/DolphinWX/Cheats/GeckoCodeDiag.cpp
parent64124a0d21db8fde638a0218f9e3dc704e1b7384 (diff)
DolphinWX: Specify wxID_ANY where -1 is used in controls
Diffstat (limited to 'Source/Core/DolphinWX/Cheats/GeckoCodeDiag.cpp')
-rw-r--r--Source/Core/DolphinWX/Cheats/GeckoCodeDiag.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/Core/DolphinWX/Cheats/GeckoCodeDiag.cpp b/Source/Core/DolphinWX/Cheats/GeckoCodeDiag.cpp
index 097f22ea56..0282b13d86 100644
--- a/Source/Core/DolphinWX/Cheats/GeckoCodeDiag.cpp
+++ b/Source/Core/DolphinWX/Cheats/GeckoCodeDiag.cpp
@@ -38,17 +38,17 @@ static const wxString wxstr_name(wxTRANSLATE("Name: ")),
wxstr_creator(wxTRANSLATE("Creator: "));
CodeConfigPanel::CodeConfigPanel(wxWindow* const parent)
- : wxPanel(parent, -1)
+ : wxPanel(parent)
{
- m_listbox_gcodes = new wxCheckListBox(this, -1);
+ m_listbox_gcodes = new wxCheckListBox(this, wxID_ANY);
m_listbox_gcodes->Bind(wxEVT_LISTBOX, &CodeConfigPanel::UpdateInfoBox, this);
m_listbox_gcodes->Bind(wxEVT_CHECKLISTBOX, &CodeConfigPanel::ToggleCode, this);
- m_infobox.label_name = new wxStaticText(this, -1, wxGetTranslation(wxstr_name));
- m_infobox.label_creator = new wxStaticText(this, -1, wxGetTranslation(wxstr_creator));
- m_infobox.label_notes = new wxStaticText(this, -1, wxGetTranslation(wxstr_notes));
- m_infobox.textctrl_notes = new wxTextCtrl(this, -1, wxEmptyString, wxDefaultPosition, wxSize(64, -1), wxTE_MULTILINE | wxTE_READONLY);
- m_infobox.listbox_codes = new wxListBox(this, -1, wxDefaultPosition, wxSize(-1, 64));
+ m_infobox.label_name = new wxStaticText(this, wxID_ANY, wxGetTranslation(wxstr_name));
+ m_infobox.label_creator = new wxStaticText(this, wxID_ANY, wxGetTranslation(wxstr_creator));
+ m_infobox.label_notes = new wxStaticText(this, wxID_ANY, wxGetTranslation(wxstr_notes));
+ m_infobox.textctrl_notes = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(64, -1), wxTE_MULTILINE | wxTE_READONLY);
+ m_infobox.listbox_codes = new wxListBox(this, wxID_ANY, wxDefaultPosition, wxSize(-1, 64));
// TODO: buttons to add/edit codes
@@ -62,7 +62,7 @@ CodeConfigPanel::CodeConfigPanel(wxWindow* const parent)
// button sizer
wxBoxSizer* const sizer_buttons = new wxBoxSizer(wxHORIZONTAL);
- btn_download = new wxButton(this, -1, _("Download Codes (WiiRD Database)"), wxDefaultPosition, wxSize(128, -1));
+ btn_download = new wxButton(this, wxID_ANY, _("Download Codes (WiiRD Database)"), wxDefaultPosition, wxSize(128, -1));
btn_download->Enable(false);
btn_download->Bind(wxEVT_BUTTON, &CodeConfigPanel::DownloadCodes, this);
sizer_buttons->AddStretchSpacer(1);