summaryrefslogtreecommitdiff
path: root/winaccessibility/source/service/AccTopWindowListener.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-20 20:27:11 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-21 00:41:08 +0100
commitc70fd83a916770d068e2278c0e6f105826178858 (patch)
tree10943bb4302b096337257e5d535d47ecc23bf8c9 /winaccessibility/source/service/AccTopWindowListener.cxx
parent07d4ae39601175caed76b4aa41d6e21d77c717b0 (diff)
winaccessibility: clean up global TopLevelWindowListener
Apparently the life-cycle of this global variable is tied to the MSAAService anyway, so just make it a member of that. Also it appears that the FreeTopListener function would call release() but at the place where the global variable is assigned acquire() was missing. Using a rtl::Reference should fix this up too. Change-Id: I6dd305dfd990d7fd4c54b16d971700b88470dc43
Diffstat (limited to 'winaccessibility/source/service/AccTopWindowListener.cxx')
-rw-r--r--winaccessibility/source/service/AccTopWindowListener.cxx23
1 files changed, 0 insertions, 23 deletions
diff --git a/winaccessibility/source/service/AccTopWindowListener.cxx b/winaccessibility/source/service/AccTopWindowListener.cxx
index 7900bf6c36f7..a463ca4ec5a5 100644
--- a/winaccessibility/source/service/AccTopWindowListener.cxx
+++ b/winaccessibility/source/service/AccTopWindowListener.cxx
@@ -44,29 +44,6 @@ using namespace com::sun::star::awt;
using namespace rtl;
using namespace cppu;
-AccTopWindowListener* g_pTop = NULL;
-
-//when proccess exit, call FreeTopWindowListener() in svmain
-void FreeTopWindowListener()
-{
- if( g_pTop )
- {
- g_pTop->release();
- g_pTop = NULL;
- }
-}
-
-/**
- * As a global method to invoke the handleWindowOpened() method
- */
-void handleWindowOpened_impl(sal_Int64 pAcc)
-{
- if( g_pTop && pAcc != 0 )
- g_pTop->HandleWindowOpened(
- static_cast<com::sun::star::accessibility::XAccessible*>(
- reinterpret_cast<void*>(pAcc)));
-}
-
/**
* For the new opened window, generate all the UNO accessible's object, COM object and add
* accessible listener to monitor all these objects.