From db0d288f605d8949405f3d17c61882dbfac73f0f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 25 Apr 2019 02:48:25 +0200 Subject: [PATCH] Use Bind() instead of Connect() Just another modernization, no real changes. --- tests/fswatcher/fswatchertest.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/fswatcher/fswatchertest.cpp b/tests/fswatcher/fswatchertest.cpp index 60bc5b221c..91e53a7bef 100644 --- a/tests/fswatcher/fswatchertest.cpp +++ b/tests/fswatcher/fswatchertest.cpp @@ -211,9 +211,8 @@ public: , m_loopActivator(&m_loop) #endif { - Connect(wxEVT_IDLE, wxIdleEventHandler(FSWTesterBase::OnIdle)); - Connect(wxEVT_FSWATCHER, wxFileSystemWatcherEventHandler( - FSWTesterBase::OnFileSystemEvent)); + Bind(wxEVT_IDLE, &FSWTesterBase::OnIdle, this); + Bind(wxEVT_FSWATCHER, &FSWTesterBase::OnFileSystemEvent, this); } virtual ~FSWTesterBase()