From 10bfbebc780fb3693741a72f258a5da2c3daffa1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 1 Dec 2014 22:56:18 -0500 Subject: DolphinWX: Specify wxID_ANY where -1 is used in controls --- Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp') 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); -- cgit v1.2.3