No changes, just remove wxSplitterWindow::{Set,Get}NeedUpdating().

GetNeedUpdating() was never used at all while SetNeedUpdating() was used only
once while m_needUpdating variable was being changed directly in other places
making the code difficult to follow.

Just use the member variable directly and remove the accessors.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-10-30 19:48:34 +00:00
parent d3f6b1b575
commit 8219f7f982
2 changed files with 3 additions and 5 deletions

View File

@@ -211,9 +211,6 @@ public:
// Resizes subwindows
virtual void SizeWindows();
void SetNeedUpdating(bool needUpdating) { m_needUpdating = needUpdating; }
bool GetNeedUpdating() const { return m_needUpdating ; }
#ifdef __WXMAC__
virtual bool MacClipGrandChildren() const { return true ; }
#endif

View File

@@ -203,7 +203,10 @@ void wxSplitterWindow::OnInternalIdle()
}
if (m_needUpdating)
{
m_needUpdating = false;
SizeWindows();
}
}
void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
@@ -709,8 +712,6 @@ void wxSplitterWindow::SizeWindows()
wxClientDC dc(this);
DrawSash(dc);
SetNeedUpdating(false);
}
// Set pane for unsplit window