summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-12-02 12:01:29 -0500
committerLioncash <mathew1800@gmail.com>2014-12-02 12:01:29 -0500
commit734aac54a8551b87da325c40530886a875519082 (patch)
treef1dcf7ebeebf7686aad3135e5facbc91e6769634 /Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp
parent54f1e3a3c148d36e694d8bb08d282225bdcb3440 (diff)
parent10bfbebc780fb3693741a72f258a5da2c3daffa1 (diff)
Merge pull request #1631 from lioncash/id
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);