From bc4d3a455460b917efbdff1f264eb97d4fadc2f0 Mon Sep 17 00:00:00 2001 From: Graham Dawes Date: Thu, 20 Dec 2018 08:06:46 +0000 Subject: [PATCH] Initialise m_qtPushButton in wxAnyButton's constructor. --- include/wx/qt/anybutton.h | 4 +--- src/qt/anybutton.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/wx/qt/anybutton.h b/include/wx/qt/anybutton.h index f8cc359f97..d697f6be36 100644 --- a/include/wx/qt/anybutton.h +++ b/include/wx/qt/anybutton.h @@ -18,9 +18,7 @@ class QPushButton; class WXDLLIMPEXP_CORE wxAnyButton : public wxAnyButtonBase { public: - wxAnyButton() - { - } + wxAnyButton(); // implementation // -------------- diff --git a/src/qt/anybutton.cpp b/src/qt/anybutton.cpp index dc56780af2..a282231453 100644 --- a/src/qt/anybutton.cpp +++ b/src/qt/anybutton.cpp @@ -46,6 +46,12 @@ void wxQtPushButton::clicked( bool WXUNUSED(checked) ) } } +wxAnyButton::wxAnyButton() : + m_qtPushButton(NULL) +{ +} + + void wxAnyButton::QtCreate(wxWindow *parent) { // create the default push button (used in button and bmp button)