From c72061938258ae866f6b9ddb36ce7f78b9740c0a Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Mon, 7 May 2018 21:23:33 -0500 Subject: [PATCH] avoid magic numbers --- src/GUI/MainFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/MainFrame.cpp b/src/GUI/MainFrame.cpp index 1452d0cc3..b28f38cf1 100644 --- a/src/GUI/MainFrame.cpp +++ b/src/GUI/MainFrame.cpp @@ -82,7 +82,7 @@ MainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& si /// Private initialization function for the main frame tab panel. void MainFrame::init_tabpanel() { - this->tabpanel = new wxAuiNotebook(this, -1, wxDefaultPosition, wxDefaultSize, wxAUI_NB_TOP); + this->tabpanel = new wxAuiNotebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxAUI_NB_TOP); auto panel = this->tabpanel; panel->Bind(wxEVT_AUINOTEBOOK_PAGE_CHANGED, ([=](wxAuiNotebookEvent& e)