summaryrefslogtreecommitdiff
path: root/framework/source/helper/ocomponentaccess.cxx
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-21 13:32:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-21 16:11:48 +0100
commit897970cd0b9709258b6b5b5fc05dba2e74a72b7c (patch)
tree45bd0da067e508cd233ca959b4d8bb7317260416 /framework/source/helper/ocomponentaccess.cxx
parent6b6f9fb71fa1bfcb438b89596e6f19529cfe1eba (diff)
loplugin:refcounting in framework
Change-Id: I2d7d14fe0335689e4a338c70587bf33137ed1ddd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111279 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/helper/ocomponentaccess.cxx')
-rw-r--r--framework/source/helper/ocomponentaccess.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/source/helper/ocomponentaccess.cxx b/framework/source/helper/ocomponentaccess.cxx
index b814fc49b83a..bfb4113eab4d 100644
--- a/framework/source/helper/ocomponentaccess.cxx
+++ b/framework/source/helper/ocomponentaccess.cxx
@@ -68,8 +68,7 @@ css::uno::Reference< XEnumeration > SAL_CALL OComponentAccess::createEnumeration
std::vector< css::uno::Reference< XComponent > > seqComponents;
impl_collectAllChildComponents( css::uno::Reference< XFramesSupplier >( xLock, UNO_QUERY ), seqComponents );
- OComponentEnumeration* pEnumeration = new OComponentEnumeration( seqComponents );
- xReturn.set( static_cast<OWeakObject*>(pEnumeration), UNO_QUERY );
+ xReturn = new OComponentEnumeration( seqComponents );
}
// Return result of this operation.