diff --git a/include/wx/gtk/hyperlink.h b/include/wx/gtk/hyperlink.h index 79aa619464..16ea5c02c7 100644 --- a/include/wx/gtk/hyperlink.h +++ b/include/wx/gtk/hyperlink.h @@ -27,22 +27,18 @@ class WXDLLIMPEXP_ADV wxHyperlinkCtrl : public wxGenericHyperlinkCtrl { typedef wxGenericHyperlinkCtrl base_type; public: - // Default constructor (for two-step construction). - wxHyperlinkCtrl() { } - - // Constructor. + // Constructors (notice that they can't be defined inline for this class + // because of m_colData which uses incomplete wxHyperlinkCtrlColData). + wxHyperlinkCtrl(); wxHyperlinkCtrl(wxWindow *parent, wxWindowID id, const wxString& label, const wxString& url, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxHL_DEFAULT_STYLE, - const wxString& name = wxHyperlinkCtrlNameStr) - { - (void)Create(parent, id, label, url, pos, size, style, name); - } + const wxString& name = wxHyperlinkCtrlNameStr); - ~wxHyperlinkCtrl(); + virtual ~wxHyperlinkCtrl(); // Creation function (for two-step construction). bool Create(wxWindow *parent, diff --git a/src/gtk/hyperlink.cpp b/src/gtk/hyperlink.cpp index 2af1c6f73a..aaead3dc88 100644 --- a/src/gtk/hyperlink.cpp +++ b/src/gtk/hyperlink.cpp @@ -110,6 +110,22 @@ public: // wxHyperlinkCtrl // ---------------------------------------------------------------------------- +wxHyperlinkCtrl::wxHyperlinkCtrl() +{ +} + +wxHyperlinkCtrl::wxHyperlinkCtrl(wxWindow *parent, + wxWindowID id, + const wxString& label, + const wxString& url, + const wxPoint& pos, + const wxSize& size, + long style, + const wxString& name) +{ + (void)Create(parent, id, label, url, pos, size, style, name); +} + wxHyperlinkCtrl::~wxHyperlinkCtrl() { #ifndef __WXGTK3__