diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-19 20:11:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-20 17:58:43 +0200 |
commit | 476a652361de507303c7298a40cc96fa4bda22a3 (patch) | |
tree | 573ec85eeb6e2604c5cb2f078ea02f848686d443 /sfx2/source/appl/shutdownicon.cxx | |
parent | 254dfda42e2e7bd8be77ccdc702ed7b09a226e57 (diff) |
loplugin:referencecasting in sfx2
Change-Id: I97cd8821aa9a6f462f9b271940483738655ee9cf
Reviewed-on: https://gerrit.libreoffice.org/75979
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/appl/shutdownicon.cxx')
-rw-r--r-- | sfx2/source/appl/shutdownicon.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx index 6693dd5235f0..6d828ed11343 100644 --- a/sfx2/source/appl/shutdownicon.cxx +++ b/sfx2/source/appl/shutdownicon.cxx @@ -200,7 +200,7 @@ void ShutdownIcon::OpenURL( const OUString& aURL, const OUString& rTarget, const if ( !getInstance() || !getInstance()->m_xDesktop.is() ) return; - css::uno::Reference < XDispatchProvider > xDispatchProvider( getInstance()->m_xDesktop, UNO_QUERY ); + css::uno::Reference < XDispatchProvider > xDispatchProvider = getInstance()->m_xDesktop; if ( !xDispatchProvider.is() ) return; @@ -243,10 +243,10 @@ void ShutdownIcon::FromTemplate() if ( !getInstance() || !getInstance()->m_xDesktop.is() ) return; - css::uno::Reference < css::frame::XFramesSupplier > xDesktop ( getInstance()->m_xDesktop, UNO_QUERY); + css::uno::Reference < css::frame::XFramesSupplier > xDesktop = getInstance()->m_xDesktop; css::uno::Reference < css::frame::XFrame > xFrame( xDesktop->getActiveFrame() ); if ( !xFrame.is() ) - xFrame.set( xDesktop, UNO_QUERY ); + xFrame = xDesktop; URL aTargetURL; aTargetURL.Complete = ".uno:NewDoc"; @@ -474,7 +474,7 @@ void ShutdownIcon::terminateDesktop() xDesktop->removeTerminateListener( pInst ); // terminate desktop only if no tasks exist - css::uno::Reference< XIndexAccess > xTasks ( xDesktop->getFrames(), UNO_QUERY ); + css::uno::Reference< XIndexAccess > xTasks = xDesktop->getFrames(); if( xTasks.is() && xTasks->getCount() < 1 ) Application::Quit(); |