From 9adcae898febba86d17e4def522b4104a348b846 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 25 Apr 2019 03:01:53 +0200 Subject: [PATCH] Make wxFileSystemWatcherEvent handler non-virtual and private There is no reason for it to be neither virtual nor public. --- tests/fswatcher/fswatchertest.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tests/fswatcher/fswatchertest.cpp b/tests/fswatcher/fswatchertest.cpp index e6c5f01265..71a493f67c 100644 --- a/tests/fswatcher/fswatchertest.cpp +++ b/tests/fswatcher/fswatchertest.cpp @@ -289,15 +289,6 @@ public: return true; } - virtual void OnFileSystemEvent(wxFileSystemWatcherEvent& evt) - { - wxLogDebug("--- %s ---", evt.ToString()); - m_events.push_back(wxDynamicCast(evt.Clone(), wxFileSystemWatcherEvent)); - - // test finished - SendIdle(); - } - virtual void CheckResult() { CPPUNIT_ASSERT_MESSAGE( "No events received", !m_events.empty() ); @@ -365,6 +356,16 @@ protected: int m_eventTypes; // Which event-types to watch. Normally all of them wxVector m_events; + +private: + void OnFileSystemEvent(wxFileSystemWatcherEvent& evt) + { + wxLogDebug("--- %s ---", evt.ToString()); + m_events.push_back(wxDynamicCast(evt.Clone(), wxFileSystemWatcherEvent)); + + // test finished + SendIdle(); + } };