diff options
Diffstat (limited to 'sd/source/ui/framework/configuration/Configuration.cxx')
-rw-r--r-- | sd/source/ui/framework/configuration/Configuration.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/framework/configuration/Configuration.cxx b/sd/source/ui/framework/configuration/Configuration.cxx index c2088a207092..c2438477c01a 100644 --- a/sd/source/ui/framework/configuration/Configuration.cxx +++ b/sd/source/ui/framework/configuration/Configuration.cxx @@ -100,11 +100,10 @@ void SAL_CALL Configuration::addResource (const Reference<XResourceId>& rxResour if ( ! rxResourceId.is() || rxResourceId->getResourceURL().isEmpty()) throw css::lang::IllegalArgumentException(); - if (mpResourceContainer->find(rxResourceId) == mpResourceContainer->end()) + if (mpResourceContainer->insert(rxResourceId).second) { SAL_INFO("sd.fwk", OSL_THIS_FUNC << ": Configuration::addResource() " << FrameworkHelper::ResourceIdToString(rxResourceId)); - mpResourceContainer->insert(rxResourceId); PostEvent(rxResourceId, true); } } |