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()