summaryrefslogtreecommitdiff
path: root/winaccessibility/source/service/AccTopWindowListener.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-21 00:32:11 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-21 00:41:09 +0100
commita36d446591353d7e4ed7eb9e25d98c6411e78a8c (patch)
tree4327fcda37b714de3d925e79c8143ec02286444f /winaccessibility/source/service/AccTopWindowListener.cxx
parent77f94ded7adaeaaf1074312632b7d933fd2d7fbe (diff)
winaccessibility: fix even more pointless HWND to long casting
Change-Id: I16a39a0dde27b17f1467a9605a4566b05f53a485
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 a463ca4ec5a5..ca8a1c01b606 100644
--- a/winaccessibility/source/service/AccTopWindowListener.cxx
+++ b/winaccessibility/source/service/AccTopWindowListener.cxx
@@ -72,7 +72,8 @@ void AccTopWindowListener::HandleWindowOpened( com::sun::star::accessibility::XA
//Only AccessibleContext exist, add all listeners
if(pAccessibleContext != NULL && systemdata != NULL)
{
- accManagerAgent.SaveTopWindowHandle((long)(HWND)systemdata->hWnd, pAccessible);
+ accManagerAgent.SaveTopWindowHandle(
+ reinterpret_cast<sal_Int64>(systemdata->hWnd), pAccessible);
AddAllListeners(pAccessible,NULL,(HWND)systemdata->hWnd);
@@ -145,7 +146,8 @@ void AccTopWindowListener::AddAllListeners(com::sun::star::accessibility::XAcces
return;
}
- accManagerAgent.InsertAccObj( pAccessible, pParentXAcc,(long)(HWND)pWND );
+ accManagerAgent.InsertAccObj(pAccessible, pParentXAcc,
+ reinterpret_cast<sal_Int64>(pWND));
if (!accManagerAgent.IsContainer(pAccessible))
{