diff options
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx index a5308ba3696a..cd2e9fecac3a 100644 --- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx +++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx @@ -29,6 +29,7 @@ #include <nativenumbersupplier.hxx> #include <stdio.h> #include <string.h> +#include <comphelper/propertysequence.hxx> #include <cppuhelper/supportsservice.hxx> // Cyrillic upper case @@ -983,11 +984,10 @@ DefaultNumberingProvider::isScriptFlagEnabled(const OUString& aName) if (! xConfigProvider.is()) throw RuntimeException(); - Sequence< Any > aArgs(1); - beans::PropertyValue aPath; - aPath.Name = "nodepath"; - aPath.Value <<= OUString("/org.openoffice.Office.Common/I18N"); - aArgs[0] <<= aPath; + uno::Sequence<uno::Any> aArgs(comphelper::InitAnyPropertySequence( + { + {"nodepath", uno::Any(OUString("/org.openoffice.Office.Common/I18N"))} + })); Reference<XInterface> xInterface = xConfigProvider->createInstanceWithArguments( "com.sun.star.configuration.ConfigurationAccess", aArgs); |