summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Cheats/CreateCodeDialog.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/CreateCodeDialog.cpp
parent64124a0d21db8fde638a0218f9e3dc704e1b7384 (diff)
DolphinWX: Specify wxID_ANY where -1 is used in controls
Diffstat (limited to 'Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp')
-rw-r--r--Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp b/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp
index aa4c0edbcc..d5188e34f6 100644
--- a/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp
+++ b/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp
@@ -21,20 +21,20 @@
wxDEFINE_EVENT(UPDATE_CHEAT_LIST_EVENT, wxCommandEvent);
CreateCodeDialog::CreateCodeDialog(wxWindow* const parent, const u32 address)
- : wxDialog(parent, -1, _("Create AR Code"))
+ : wxDialog(parent, wxID_ANY, _("Create AR Code"))
, m_code_address(address)
{
- wxStaticText* const label_name = new wxStaticText(this, -1, _("Name: "));
- m_textctrl_name = new wxTextCtrl(this, -1, wxEmptyString, wxDefaultPosition, wxSize(256,-1));
+ wxStaticText* const label_name = new wxStaticText(this, wxID_ANY, _("Name: "));
+ m_textctrl_name = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(256, -1));
- wxStaticText* const label_code = new wxStaticText(this, -1, _("Code: "));
- m_textctrl_code = new wxTextCtrl(this, -1, wxString::Format("0x%08x", address));
+ wxStaticText* const label_code = new wxStaticText(this, wxID_ANY, _("Code: "));
+ m_textctrl_code = new wxTextCtrl(this, wxID_ANY, wxString::Format("0x%08x", address));
m_textctrl_code->Disable();
- wxStaticText* const label_value = new wxStaticText(this, -1, _("Value: "));
- m_textctrl_value = new wxTextCtrl(this, -1, "0");
+ wxStaticText* const label_value = new wxStaticText(this, wxID_ANY, _("Value: "));
+ m_textctrl_value = new wxTextCtrl(this, wxID_ANY, "0");
- m_checkbox_use_hex = new wxCheckBox(this, -1, _("Use Hex"));
+ m_checkbox_use_hex = new wxCheckBox(this, wxID_ANY, _("Use Hex"));
m_checkbox_use_hex->SetValue(true);
wxBoxSizer* const sizer_value_label = new wxBoxSizer(wxHORIZONTAL);