diff --git a/include/wx/aui/auibook.h b/include/wx/aui/auibook.h index 9fb0739e15..5962a661c2 100644 --- a/include/wx/aui/auibook.h +++ b/include/wx/aui/auibook.h @@ -236,11 +236,11 @@ protected: protected: - wxPoint m_clickPt; - wxWindow* m_clickTab; - bool m_isDragging; - wxAuiTabContainerButton* m_hoverButton; - wxAuiTabContainerButton* m_pressedButton; + wxPoint m_clickPt = wxDefaultPosition; + wxWindow* m_clickTab = nullptr; + bool m_isDragging = false; + wxAuiTabContainerButton* m_hoverButton = nullptr; + wxAuiTabContainerButton* m_pressedButton = nullptr; void SetHoverTab(wxWindow* wnd); diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index fe607232fe..88b7300e56 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -1013,10 +1013,6 @@ wxAuiTabCtrl::wxAuiTabCtrl(wxWindow* parent, long style) : wxControl(parent, id, pos, size, style) { SetName(wxT("wxAuiTabCtrl")); - m_clickPt = wxDefaultPosition; - m_isDragging = false; - m_hoverButton = nullptr; - m_pressedButton = nullptr; } wxAuiTabCtrl::~wxAuiTabCtrl()