summaryrefslogtreecommitdiff
path: root/framework/source/helper/ocomponentaccess.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-02 10:04:55 +0200
committerNoel Grandin <noel@peralex.com>2015-11-02 12:23:16 +0200
commit5797d29e9ead0a3dd181b616dfcc968a9127012d (patch)
treeec8828c4c2e7617f8d8e9334507bab517aed6dc9 /framework/source/helper/ocomponentaccess.cxx
parent4ea0390faa22037f1d4f703c0882a027cf2ae643 (diff)
use uno::Reference::set method instead of assignment
Change-Id: Ic979f8a7734d0ef7a915d47a875cdcd460c0cc58
Diffstat (limited to 'framework/source/helper/ocomponentaccess.cxx')
-rw-r--r--framework/source/helper/ocomponentaccess.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/source/helper/ocomponentaccess.cxx b/framework/source/helper/ocomponentaccess.cxx
index cd2bdfa67ef0..68c7f58e05ff 100644
--- a/framework/source/helper/ocomponentaccess.cxx
+++ b/framework/source/helper/ocomponentaccess.cxx
@@ -68,7 +68,7 @@ css::uno::Reference< XEnumeration > SAL_CALL OComponentAccess::createEnumeration
Sequence< css::uno::Reference< XComponent > > seqComponents;
impl_collectAllChildComponents( css::uno::Reference< XFramesSupplier >( xLock, UNO_QUERY ), seqComponents );
OComponentEnumeration* pEnumeration = new OComponentEnumeration( seqComponents );
- xReturn = css::uno::Reference< XEnumeration >( static_cast<OWeakObject*>(pEnumeration), UNO_QUERY );
+ xReturn.set( static_cast<OWeakObject*>(pEnumeration), UNO_QUERY );
}
// Return result of this operation.
@@ -144,7 +144,7 @@ css::uno::Reference< XComponent > OComponentAccess::impl_getFrameComponent( cons
if ( !xController.is() )
{
// Controller not exist - use the VCL-component.
- xComponent = css::uno::Reference< XComponent >( xFrame->getComponentWindow(), UNO_QUERY );
+ xComponent.set( xFrame->getComponentWindow(), UNO_QUERY );
}
else
{
@@ -153,12 +153,12 @@ css::uno::Reference< XComponent > OComponentAccess::impl_getFrameComponent( cons
if ( xModel.is() )
{
// Model exist - use the model as component.
- xComponent = css::uno::Reference< XComponent >( xModel, UNO_QUERY );
+ xComponent.set( xModel, UNO_QUERY );
}
else
{
// Model not exist - use the controller as component.
- xComponent = css::uno::Reference< XComponent >( xController, UNO_QUERY );
+ xComponent.set( xController, UNO_QUERY );
}
}