summaryrefslogtreecommitdiff
path: root/basic/source/classes/eventatt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/classes/eventatt.cxx')
-rw-r--r--basic/source/classes/eventatt.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/classes/eventatt.cxx b/basic/source/classes/eventatt.cxx
index 5df743ab4589..457a3d570378 100644
--- a/basic/source/classes/eventatt.cxx
+++ b/basic/source/classes/eventatt.cxx
@@ -90,7 +90,7 @@ void SFURL_firing_impl( const ScriptEvent& aScriptEvent, Any* pRet, const Refere
Any aCtx;
aCtx <<= OUString("user");
- xScriptProvider.set( xFactory->createScriptProvider( aCtx ), UNO_QUERY );
+ xScriptProvider = xFactory->createScriptProvider( aCtx );
}
if ( !xScriptProvider.is() )
@@ -483,10 +483,10 @@ void RTL_Impl_CreateUnoDialog( SbxArray& rPar )
{
Reference< frame::XDesktop2 > xDesktop = frame::Desktop::create( xContext );
Reference< container::XEnumeration > xModels;
- Reference< container::XEnumerationAccess > xComponents( xDesktop->getComponents(), UNO_QUERY );
+ Reference< container::XEnumerationAccess > xComponents = xDesktop->getComponents();
if ( xComponents.is() )
{
- xModels.set( xComponents->createEnumeration(), UNO_QUERY );
+ xModels = xComponents->createEnumeration();
}
if ( xModels.is() )
{