Initialize wxAuiTabCtrl members in their declarations
Ensure that all of them are initialized, including m_clickTab, which didn't seem to be always initialized before. No real changes (as m_clickTab doesn't seem to have been used before it was initialized).
This commit is contained in:
parent
bd7b333a87
commit
0fd15e405f
2 changed files with 5 additions and 9 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue