summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-21 12:32:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-21 16:13:06 +0100
commit8f231fc5df201c45d16bce0b4b17f727842b2121 (patch)
tree1eba8f98d459e1f261dc9edc791e67b9675aec4b /sd/source/ui/framework
parent98173f6222cec22170b53c7d9c94c6ce5b08b4d9 (diff)
loplugin:refcounting in sd
Change-Id: Ic95aa7a3c1fdab1baef744ec85ffc9c98dee5f1e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111272 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/framework')
-rw-r--r--sd/source/ui/framework/configuration/Configuration.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sd/source/ui/framework/configuration/Configuration.cxx b/sd/source/ui/framework/configuration/Configuration.cxx
index 53bbaa339316..f155e0992e68 100644
--- a/sd/source/ui/framework/configuration/Configuration.cxx
+++ b/sd/source/ui/framework/configuration/Configuration.cxx
@@ -182,12 +182,10 @@ Reference<util::XCloneable> SAL_CALL Configuration::createClone()
::osl::MutexGuard aGuard (maMutex);
ThrowIfDisposed();
- Configuration* pConfiguration = new Configuration(
+ return new Configuration(
mxBroadcaster,
mbBroadcastRequestEvents,
*mpResourceContainer);
-
- return Reference<util::XCloneable>(pConfiguration);
}
//----- XNamed ----------------------------------------------------------------