diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-10-19 15:11:45 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-10-19 22:01:31 +0200 |
commit | c4cec8647faf130111d67302e75998ddff4c0792 (patch) | |
tree | ad42b521fe2b671a93529cfa4211f271a893d439 /embedserv | |
parent | 3aef606f2758172a27718a06fea0ff9080e4d80f (diff) |
clang-cl: Adapt Windows-specific code to extended loplugin:cstylecast
...after 1ebeacb20ad0165e399629fcfd7795ad0da3edf8 "Extend loplugin:cstylecast to
certain function-style casts"
Change-Id: I99bd383f5b3bee861d442d2e1be6ecd356b78315
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104523
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'embedserv')
-rw-r--r-- | embedserv/source/embed/docholder.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embedserv/source/embed/docholder.cxx b/embedserv/source/embed/docholder.cxx index cb6f19b68e7e..ecaeede416b7 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_Int64(hWndxWinParent)), + uno::Any(reinterpret_cast<sal_Int64>(hWndxWinParent)), aProcessIdent, lang::SystemDependent::SYSTEM_WIN32), uno::UNO_QUERY); @@ -367,7 +367,7 @@ HRESULT DocumentHolder::InPlaceActivate( aProcessIdent,lang::SystemDependent::SYSTEM_WIN32); sal_Int64 tmp; if( aAny >>= tmp ) - m_nMenuHandle = HMENU(tmp); + m_nMenuHandle = reinterpret_cast<HMENU>(tmp); m_xLayoutManager->hideElement( "private:resource/menubar/menubar" ); } @@ -1205,7 +1205,7 @@ css::uno::Reference< css::awt::XWindow> SAL_CALL DocumentHolder::getContainerWin xWin.set( xToolkit->createSystemChild( - uno::Any(sal_Int64(hWnd)), + uno::Any(reinterpret_cast<sal_Int64>(hWnd)), aProcessIdent, lang::SystemDependent::SYSTEM_WIN32), uno::UNO_QUERY); |