From dc499149f4ea4225bffe5f389ee8342a8e73ea6c Mon Sep 17 00:00:00 2001 From: crs Date: Mon, 27 Sep 2004 21:54:49 +0000 Subject: [PATCH] Fixed compile on gcc 3.4 and later. gcc started doing access checks for class visibility on pointers to member function 'using the qualifying scope of the name itself.' what this means is if method 'prot' is declared protected in class A and B inherits from A then a method in B cannot use &A::prot but can use &B::prot. Synergy now does this in the one place it had not. --- lib/platform/CXWindowsScreen.cpp | 4 ++-- lib/synergy/IPlatformScreen.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/platform/CXWindowsScreen.cpp b/lib/platform/CXWindowsScreen.cpp index e176ca37..d085a441 100644 --- a/lib/platform/CXWindowsScreen.cpp +++ b/lib/platform/CXWindowsScreen.cpp @@ -169,8 +169,8 @@ CXWindowsScreen::CXWindowsScreen(bool isPrimary) : // install event handlers EVENTQUEUE->adoptHandler(CEvent::kSystem, IEventQueue::getSystemTarget(), - new TMethodEventJob(this, - &IPlatformScreen::handleSystemEvent)); + new TMethodEventJob(this, + &CXWindowsScreen::handleSystemEvent)); // install the platform event queue EVENTQUEUE->adoptBuffer(new CXWindowsEventQueueBuffer(m_display, m_window)); diff --git a/lib/synergy/IPlatformScreen.h b/lib/synergy/IPlatformScreen.h index 8a5da677..47f5d36a 100644 --- a/lib/synergy/IPlatformScreen.h +++ b/lib/synergy/IPlatformScreen.h @@ -179,8 +179,8 @@ protected: \code EVENTQUEUE->adoptHandler(CEvent::kSystem, IEventQueue::getSystemTarget(), - new TMethodEventJob(this, - &IPlatformScreen::handleSystemEvent)); + new TMethodEventJob(this, + &CXXXPlatformScreen::handleSystemEvent)); \endcode It should remove the handler in its d'tor. Override the \c handleSystemEvent() method to process system events.