From e333b4fdc3d742d98432da609b6622e97c4b7a6b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 20 Mar 2020 16:57:02 +0100 Subject: [PATCH] -Werror,-Wpointer-to-int-cast (LLVM 10 trunk clang-cl) The receiving end, VCLXToolkit::createSystemChild in toolkit/source/awt/vclxtoolkit.cxx, already extracts a sal_Int64 from the Any. Change-Id: I758345281a9aafa4eaa27dd31e47e43981df205a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90826 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- embedserv/source/embed/docholder.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embedserv/source/embed/docholder.cxx b/embedserv/source/embed/docholder.cxx index 4db6abd25235..72327def556d 100644 --- a/embedserv/source/embed/docholder.cxx +++ b/embedserv/source/embed/docholder.cxx @@ -284,7 +284,7 @@ HRESULT DocumentHolder::InPlaceActivate( xWin.set( xToolkit->createSystemChild( - uno::Any(sal_Int32(hWndxWinParent)), + uno::Any(sal_Int64(hWndxWinParent)), aProcessIdent, lang::SystemDependent::SYSTEM_WIN32), uno::UNO_QUERY); @@ -1209,7 +1209,7 @@ css::uno::Reference< css::awt::XWindow> SAL_CALL DocumentHolder::getContainerWin xWin.set( xToolkit->createSystemChild( - uno::Any(sal_Int32(hWnd)), + uno::Any(sal_Int64(hWnd)), aProcessIdent, lang::SystemDependent::SYSTEM_WIN32), uno::UNO_QUERY);