summaryrefslogtreecommitdiff
path: root/scripting/source/dlgprov/dlgprov.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-20 13:28:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-20 17:59:06 +0200
commitb1ef3c043d66e7cd529fc4fb13a3d2e8fdb4f2ee (patch)
treeac5ef4b1c0a3b191f97b3b2aa022a3062c77fdb3 /scripting/source/dlgprov/dlgprov.cxx
parent476a652361de507303c7298a40cc96fa4bda22a3 (diff)
loplugin:referencecasting in scripting
Change-Id: I056ae11c6cda0a1550a8fe363b069359feafcd59 Reviewed-on: https://gerrit.libreoffice.org/75996 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting/source/dlgprov/dlgprov.cxx')
-rw-r--r--scripting/source/dlgprov/dlgprov.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripting/source/dlgprov/dlgprov.cxx b/scripting/source/dlgprov/dlgprov.cxx
index 64f12bfb9350..3c71bcf6102d 100644
--- a/scripting/source/dlgprov/dlgprov.cxx
+++ b/scripting/source/dlgprov/dlgprov.cxx
@@ -262,7 +262,7 @@ namespace dlgprov
Reference< uri::XUriReference > uriRef;
for (;;)
{
- uriRef.set( xFac->parse( aURL ), UNO_QUERY );
+ uriRef = xFac->parse( aURL );
if ( !uriRef.is() )
{
OUString errorMsg = "DialogProviderImpl::getDialogModel: failed to parse URI: " + aURL;
@@ -310,14 +310,14 @@ namespace dlgprov
if ( sLocation == "application" )
{
- xLibContainer.set( SfxGetpApp()->GetDialogContainer(), UNO_QUERY );
+ xLibContainer = SfxGetpApp()->GetDialogContainer();
}
else if ( sLocation == "document" )
{
Reference< XEmbeddedScripts > xDocumentScripts( m_xModel, UNO_QUERY );
if ( xDocumentScripts.is() )
{
- xLibContainer.set( xDocumentScripts->getDialogLibraries(), UNO_QUERY );
+ xLibContainer = xDocumentScripts->getDialogLibraries();
OSL_ENSURE( xLibContainer.is(),
"DialogProviderImpl::createDialogModel: invalid dialog container!" );
}
@@ -346,7 +346,7 @@ namespace dlgprov
if ( !xDocumentScripts.is() )
continue;
- xLibContainer.set( xDocumentScripts->getDialogLibraries(), UNO_QUERY );
+ xLibContainer = xDocumentScripts->getDialogLibraries();
OSL_ENSURE( xLibContainer.is(),
"DialogProviderImpl::createDialogModel: invalid dialog container!" );
}
@@ -451,10 +451,10 @@ namespace dlgprov
}
else if ( m_xModel.is() )
{
- Reference< frame::XController > xController( m_xModel->getCurrentController(), UNO_QUERY );
+ Reference< frame::XController > xController = m_xModel->getCurrentController();
if ( xController.is() )
{
- Reference< frame::XFrame > xFrame( xController->getFrame(), UNO_QUERY );
+ Reference< frame::XFrame > xFrame = xController->getFrame();
if ( xFrame.is() )
xPeer.set( xFrame->getContainerWindow(), UNO_QUERY );
}