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:
@@ -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
|
||||
|
@@ -203,8 +203,11 @@ 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
|
||||
|
Reference in New Issue
Block a user