From 87afebd6f280b564dcefc27231dbd1dec9f71162 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 18 Dec 2017 18:28:53 +0100 Subject: [PATCH] Inline wxStaticBox ctors in wxGTK No real changes, just make the trivial ctors of this class inline for consistency with the new ctor about to be added. --- include/wx/gtk/statbox.h | 11 +++++++++-- src/gtk/statbox.cpp | 15 --------------- 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/include/wx/gtk/statbox.h b/include/wx/gtk/statbox.h index 7dd72b86ff..b019740133 100644 --- a/include/wx/gtk/statbox.h +++ b/include/wx/gtk/statbox.h @@ -16,14 +16,21 @@ class WXDLLIMPEXP_CORE wxStaticBox : public wxStaticBoxBase { public: - wxStaticBox(); + wxStaticBox() + { + } + wxStaticBox( wxWindow *parent, wxWindowID id, const wxString &label, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = 0, - const wxString &name = wxStaticBoxNameStr ); + const wxString &name = wxStaticBoxNameStr ) + { + Create( parent, id, label, pos, size, style, name ); + } + bool Create( wxWindow *parent, wxWindowID id, const wxString &label, diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index 797d80caf8..1e4a724497 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -59,21 +59,6 @@ static gboolean expose_event(GtkWidget* widget, GdkEventExpose*, wxWindow*) // wxStaticBox //----------------------------------------------------------------------------- -wxStaticBox::wxStaticBox() -{ -} - -wxStaticBox::wxStaticBox( wxWindow *parent, - wxWindowID id, - const wxString &label, - const wxPoint& pos, - const wxSize& size, - long style, - const wxString& name ) -{ - Create( parent, id, label, pos, size, style, name ); -} - bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString& label,