diff options
-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; }; |