diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-24 11:22:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-28 10:17:47 +0000 |
commit | 198c41c4fe8be4ce8a6ddab43ae0c5f17a4889ac (patch) | |
tree | 041d55126e9770b81f68fadfaaa69e82313786b3 /vcl/source/window | |
parent | d3981b3e8c021ee03a2ca7103a73e56cca18df81 (diff) |
new loplugin unoany
Change-Id: I5d6c4a67cb2a09e7cd5bd620c6b262d188701b89
Reviewed-on: https://gerrit.libreoffice.org/34714
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/mouse.cxx | 8 | ||||
-rw-r--r-- | vcl/source/window/window.cxx | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/vcl/source/window/mouse.cxx b/vcl/source/window/mouse.cxx index d1cc051721bc..d0349d8c4f54 100644 --- a/vcl/source/window/mouse.cxx +++ b/vcl/source/window/mouse.cxx @@ -747,10 +747,10 @@ Reference< css::datatransfer::dnd::XDragSource > Window::GetDragSource() aDragSourceSN = "com.sun.star.datatransfer.dnd.X11DragSource"; aDropTargetSN = "com.sun.star.datatransfer.dnd.X11DropTarget"; - aDragSourceAL[ 0 ] = makeAny( Application::GetDisplayConnection() ); - aDragSourceAL[ 1 ] = makeAny(static_cast<sal_IntPtr>(pEnvData->aShellWindow)); - aDropTargetAL[ 0 ] = makeAny( Application::GetDisplayConnection() ); - aDropTargetAL[ 1 ] = makeAny(static_cast<sal_IntPtr>(pEnvData->aShellWindow)); + aDragSourceAL[ 0 ] <<= Application::GetDisplayConnection(); + aDragSourceAL[ 1 ] <<= static_cast<sal_IntPtr>(pEnvData->aShellWindow); + aDropTargetAL[ 0 ] <<= Application::GetDisplayConnection(); + aDropTargetAL[ 1 ] <<= static_cast<sal_IntPtr>(pEnvData->aShellWindow); #endif if( !aDragSourceSN.isEmpty() ) mpWindowImpl->mpFrameData->mxDragSource.set( diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 14d0e935c60d..4eee9667c792 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -3568,13 +3568,13 @@ Reference< css::rendering::XCanvas > Window::ImplGetCanvas( bool bSpriteCanvas ) // Feed any with operating system's window handle // common: first any is VCL pointer to window (for VCL canvas) - aArg[ 0 ] = makeAny( reinterpret_cast<sal_Int64>(this) ); + aArg[ 0 ] <<= reinterpret_cast<sal_Int64>(this); aArg[ 1 ] = GetSystemDataAny(); - aArg[ 2 ] = makeAny( css::awt::Rectangle( mnOutOffX, mnOutOffY, mnOutWidth, mnOutHeight ) ); - aArg[ 3 ] = makeAny( mpWindowImpl->mbAlwaysOnTop ); - aArg[ 4 ] = makeAny( Reference< css::awt::XWindow >( + aArg[ 2 ] <<= css::awt::Rectangle( mnOutOffX, mnOutOffY, mnOutWidth, mnOutHeight ); + aArg[ 3 ] <<= mpWindowImpl->mbAlwaysOnTop; + aArg[ 4 ] <<= Reference< css::awt::XWindow >( const_cast<vcl::Window*>(this)->GetComponentInterface(), - UNO_QUERY )); + UNO_QUERY ); aArg[ 5 ] = GetSystemGfxDataAny(); Reference< XComponentContext > xContext = comphelper::getProcessComponentContext(); |