diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-09 08:33:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-07-09 12:08:30 +0200 |
commit | c3385a2479fd511be512e202189c6ad3801a034c (patch) | |
tree | 31e80a2cd77ca69c567d1333b04e6441d168d1b9 /sd | |
parent | 9bb112df79b6e17486d71e2c79d5eb44a16ad61f (diff) |
cid#1554688 COPY_INSTEAD_OF_MOVE
Change-Id: Icf7c8f12259f8d2023fadc4a62318ee392e71f4b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170189
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx | 5 | ||||
-rw-r--r-- | sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.hxx | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx b/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx index cc04b9099a75..70b308691957 100644 --- a/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx +++ b/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx @@ -251,10 +251,7 @@ void ConfigurationControllerResourceManager::AddResource ( } // Add the resource to the resource container. - ResourceDescriptor aDescriptor; - aDescriptor.mxResource = rxResource; - aDescriptor.mxResourceFactory = rxFactory; - maResourceMap[rxResource->getResourceId()] = aDescriptor; + maResourceMap[rxResource->getResourceId()] = ResourceDescriptor{rxResource, rxFactory}; #if OSL_DEBUG_LEVEL >= 2 SAL_INFO("sd.fwk", __func__ << ": ConfigurationControllerResourceManager::AddResource(): added " << diff --git a/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.hxx b/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.hxx index 9839a0db3cde..b57674e1425c 100644 --- a/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.hxx +++ b/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.hxx @@ -46,9 +46,8 @@ public: creating factory are remembered, so that on deactivation, the resource can be deactivated by this factory. */ - class ResourceDescriptor + struct ResourceDescriptor { - public: css::uno::Reference<css::drawing::framework::XResource> mxResource; css::uno::Reference<css::drawing::framework::XResourceFactory> mxResourceFactory; }; |