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.
This commit is contained in:
crs 2004-09-27 21:54:49 +00:00
parent e7ae6831cf
commit dc499149f4
2 changed files with 4 additions and 4 deletions

View File

@ -169,8 +169,8 @@ CXWindowsScreen::CXWindowsScreen(bool isPrimary) :
// install event handlers // install event handlers
EVENTQUEUE->adoptHandler(CEvent::kSystem, IEventQueue::getSystemTarget(), EVENTQUEUE->adoptHandler(CEvent::kSystem, IEventQueue::getSystemTarget(),
new TMethodEventJob<IPlatformScreen>(this, new TMethodEventJob<CXWindowsScreen>(this,
&IPlatformScreen::handleSystemEvent)); &CXWindowsScreen::handleSystemEvent));
// install the platform event queue // install the platform event queue
EVENTQUEUE->adoptBuffer(new CXWindowsEventQueueBuffer(m_display, m_window)); EVENTQUEUE->adoptBuffer(new CXWindowsEventQueueBuffer(m_display, m_window));

View File

@ -179,8 +179,8 @@ protected:
\code \code
EVENTQUEUE->adoptHandler(CEvent::kSystem, EVENTQUEUE->adoptHandler(CEvent::kSystem,
IEventQueue::getSystemTarget(), IEventQueue::getSystemTarget(),
new TMethodEventJob<IPlatformScreen>(this, new TMethodEventJob<CXXXPlatformScreen>(this,
&IPlatformScreen::handleSystemEvent)); &CXXXPlatformScreen::handleSystemEvent));
\endcode \endcode
It should remove the handler in its d'tor. Override the It should remove the handler in its d'tor. Override the
\c handleSystemEvent() method to process system events. \c handleSystemEvent() method to process system events.