summaryrefslogtreecommitdiff
path: root/winaccessibility/source/service/AccTopWindowListener.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-20 01:29:56 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-20 01:33:42 +0100
commit4757ed435519b660d6e7922006a630f23bfedd5d (patch)
treeb486721b2602da91be77098cf18238f778e05f73 /winaccessibility/source/service/AccTopWindowListener.cxx
parent3e1c7d12eeefdfc50b842fe34f3db657292359b9 (diff)
winaccessibility: XMSAAService could only work on 32-bit
... so replace all long with hyper to fit in 64-bit pointers. Change-Id: Ia5c044e8d7cc8c4e55f1ef8c0fb0f91bb9a69e1c
Diffstat (limited to 'winaccessibility/source/service/AccTopWindowListener.cxx')
-rw-r--r--winaccessibility/source/service/AccTopWindowListener.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/winaccessibility/source/service/AccTopWindowListener.cxx b/winaccessibility/source/service/AccTopWindowListener.cxx
index 87b4b9f7e1db..7900bf6c36f7 100644
--- a/winaccessibility/source/service/AccTopWindowListener.cxx
+++ b/winaccessibility/source/service/AccTopWindowListener.cxx
@@ -59,10 +59,12 @@ void FreeTopWindowListener()
/**
* As a global method to invoke the handleWindowOpened() method
*/
-void handleWindowOpened_impl(long pAcc)
+void handleWindowOpened_impl(sal_Int64 pAcc)
{
if( g_pTop && pAcc != 0 )
- g_pTop->HandleWindowOpened( (com::sun::star::accessibility::XAccessible*)((void*)pAcc) );
+ g_pTop->HandleWindowOpened(
+ static_cast<com::sun::star::accessibility::XAccessible*>(
+ reinterpret_cast<void*>(pAcc)));
}
/**