From 8219f7f98211cdf964466d130fd71a87e2282682 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 30 Oct 2011 19:48:34 +0000 Subject: [PATCH] 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 --- include/wx/generic/splitter.h | 3 --- src/generic/splitter.cpp | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/wx/generic/splitter.h b/include/wx/generic/splitter.h index fdaeb8023a..2b75bb1d98 100644 --- a/include/wx/generic/splitter.h +++ b/include/wx/generic/splitter.h @@ -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 diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 968c1a1d58..c5833830c8 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -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 -- 2.45.2