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/ControllerConfigDiag.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Core/DolphinWX/ControllerConfigDiag.cpp') diff --git a/Source/Core/DolphinWX/ControllerConfigDiag.cpp b/Source/Core/DolphinWX/ControllerConfigDiag.cpp index 66fedf31d1..da7cc6145a 100644 --- a/Source/Core/DolphinWX/ControllerConfigDiag.cpp +++ b/Source/Core/DolphinWX/ControllerConfigDiag.cpp @@ -47,7 +47,7 @@ const std::array ControllerConfigDiag::m_gc_pad_type_strs = {{ }}; ControllerConfigDiag::ControllerConfigDiag(wxWindow* const parent) - : wxDialog(parent, -1, _("Dolphin Controller Configuration")) + : wxDialog(parent, wxID_ANY, _("Dolphin Controller Configuration")) { wxBoxSizer* const main_sizer = new wxBoxSizer(wxVERTICAL); @@ -239,15 +239,15 @@ wxStaticBoxSizer* ControllerConfigDiag::CreateBalanceBoardSizer() wxStaticBoxSizer* ControllerConfigDiag::CreateRealWiimoteSizer() { // "Real wiimotes" controls - wxButton* const refresh_btn = new wxButton(this, -1, _("Refresh")); + wxButton* const refresh_btn = new wxButton(this, wxID_ANY, _("Refresh")); refresh_btn->Bind(wxEVT_BUTTON, &ControllerConfigDiag::RefreshRealWiimotes, this); wxStaticBoxSizer* const real_wiimotes_group = new wxStaticBoxSizer(wxVERTICAL, this, _("Real Wiimotes")); wxBoxSizer* const real_wiimotes_sizer = new wxBoxSizer(wxHORIZONTAL); if (!WiimoteReal::g_wiimote_scanner.IsReady()) - real_wiimotes_group->Add(new wxStaticText(this, -1, _("A supported bluetooth device could not be found.\n" - "You must manually connect your wiimotes.")), 0, wxALIGN_CENTER | wxALL, 5); + real_wiimotes_group->Add(new wxStaticText(this, wxID_ANY, _("A supported bluetooth device could not be found.\n" + "You must manually connect your wiimotes.")), 0, wxALIGN_CENTER | wxALL, 5); wxCheckBox* const continuous_scanning = new wxCheckBox(this, wxID_ANY, _("Continuous Scanning")); continuous_scanning->Bind(wxEVT_CHECKBOX, &ControllerConfigDiag::OnContinuousScanning, this); -- cgit v1.2.3