From d617834eb96b3c879d68f731c60231fdd49c2afe Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 13 Jan 2018 17:39:40 +0100 Subject: [PATCH] Don't make wxEventLoop::WakeUpIdle() virtual It just forwards to (virtual) WakeUp() and there should be no need to ever override this method itself (nor even to keep it, except for backwards compatibility). No real changes. --- include/wx/evtloop.h | 5 +++-- src/common/evtloopcmn.cpp | 5 ----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/include/wx/evtloop.h b/include/wx/evtloop.h index 00e6d097d5..bd50999509 100644 --- a/include/wx/evtloop.h +++ b/include/wx/evtloop.h @@ -128,8 +128,9 @@ public: // idle handling // ------------- - // make sure that idle events are sent again - virtual void WakeUpIdle(); + // make sure that idle events are sent again: this is just an obsolete + // synonym for WakeUp() + void WakeUpIdle() { WakeUp(); } // this virtual function is called when the application // becomes idle and by default it forwards to wxApp::ProcessIdle() and diff --git a/src/common/evtloopcmn.cpp b/src/common/evtloopcmn.cpp index e8123f3caa..572c29626a 100644 --- a/src/common/evtloopcmn.cpp +++ b/src/common/evtloopcmn.cpp @@ -88,11 +88,6 @@ void wxEventLoopBase::OnExit() wxTheApp->OnEventLoopExit(this); } -void wxEventLoopBase::WakeUpIdle() -{ - WakeUp(); -} - bool wxEventLoopBase::ProcessIdle() { return wxTheApp && wxTheApp->ProcessIdle();