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/appserv.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/appserv.cxx')
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 90f584c3cf7e..fe24e15b8cc4 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -483,7 +483,7 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq ) { Reference < XDesktop2 > xDesktop = Desktop::create( ::comphelper::getProcessComponentContext() ); - Reference< XIndexAccess > xTasks( xDesktop->getFrames(), UNO_QUERY ); + Reference< XIndexAccess > xTasks = xDesktop->getFrames(); if ( !xTasks.is() ) break; @@ -1128,7 +1128,7 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet) case SID_CLOSEDOCS: { Reference < XDesktop2 > xDesktop = Desktop::create( ::comphelper::getProcessComponentContext() ); - Reference< XIndexAccess > xTasks( xDesktop->getFrames(), UNO_QUERY ); + Reference< XIndexAccess > xTasks = xDesktop->getFrames(); if ( !xTasks.is() || !xTasks->getCount() ) rSet.DisableItem(nWhich); break; |