Initialise m_qtPushButton in wxAnyButton's constructor.

This commit is contained in:
Graham Dawes
2018-12-20 08:06:46 +00:00
parent c6d3b9c0b9
commit bc4d3a4554
2 changed files with 7 additions and 3 deletions

View File

@@ -18,9 +18,7 @@ class QPushButton;
class WXDLLIMPEXP_CORE wxAnyButton : public wxAnyButtonBase class WXDLLIMPEXP_CORE wxAnyButton : public wxAnyButtonBase
{ {
public: public:
wxAnyButton() wxAnyButton();
{
}
// implementation // implementation
// -------------- // --------------

View File

@@ -46,6 +46,12 @@ void wxQtPushButton::clicked( bool WXUNUSED(checked) )
} }
} }
wxAnyButton::wxAnyButton() :
m_qtPushButton(NULL)
{
}
void wxAnyButton::QtCreate(wxWindow *parent) void wxAnyButton::QtCreate(wxWindow *parent)
{ {
// create the default push button (used in button and bmp button) // create the default push button (used in button and bmp button)