diff options
Diffstat (limited to 'framework/source/services/modulemanager.cxx')
-rw-r--r-- | framework/source/services/modulemanager.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/framework/source/services/modulemanager.cxx b/framework/source/services/modulemanager.cxx index bf4a153ec3ee..25c7cda3048b 100644 --- a/framework/source/services/modulemanager.cxx +++ b/framework/source/services/modulemanager.cxx @@ -229,17 +229,11 @@ void SAL_CALL ModuleManager::replaceByName(const OUString& sName , static_cast< cppu::OWeakObject * >(this)); } - ::comphelper::SequenceAsHashMap::const_iterator pProp; - for ( pProp = lProps.begin(); - pProp != lProps.end() ; - ++pProp ) + for (auto const& prop : lProps) { - const OUString& sPropName = pProp->first; - const css::uno::Any& aPropValue = pProp->second; - // let "NoSuchElementException" out ! We support the same API ... // and without a flush() at the end all changed data before will be ignored ! - xModule->replaceByName(sPropName, aPropValue); + xModule->replaceByName(prop.first, prop.second); } ::comphelper::ConfigurationHelper::flush(xCfg); |