diff options
Diffstat (limited to 'framework/source/uifactory/uielementfactorymanager.cxx')
-rw-r--r-- | framework/source/uifactory/uielementfactorymanager.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/framework/source/uifactory/uielementfactorymanager.cxx b/framework/source/uifactory/uielementfactorymanager.cxx index ee455a54d2bb..5524e3118528 100644 --- a/framework/source/uifactory/uielementfactorymanager.cxx +++ b/framework/source/uifactory/uielementfactorymanager.cxx @@ -37,6 +37,7 @@ #include <com/sun/star/ui/XUIElementFactoryManager.hpp> #include <rtl/ustrbuf.hxx> +#include <comphelper/propertysequence.hxx> #include <cppuhelper/basemutex.hxx> #include <cppuhelper/compbase.hxx> #include <cppuhelper/supportsservice.hxx> @@ -263,12 +264,10 @@ void ConfigurationAccess_FactoryManager::readConfigurationData() if ( !m_bConfigAccessInitialized ) { - Sequence< Any > aArgs( 1 ); - PropertyValue aPropValue; - - aPropValue.Name = "nodepath"; - aPropValue.Value <<= m_sRoot; - aArgs[0] <<= aPropValue; + Sequence<Any> aArgs(comphelper::InitAnyPropertySequence( + { + {"nodepath", Any(m_sRoot)} + })); try { |