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:
parent
e7ae6831cf
commit
dc499149f4
|
@ -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));
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue