diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-07-21 15:11:02 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-07-21 19:50:56 +0200 |
commit | c23cc5d7551a0ed0e3dad2d33dd00b38643456a1 (patch) | |
tree | 9fb4820f9506972da371e67789d09e2c3d487a74 /sd/source/ui/tools | |
parent | 71ab0b8b8368b5010d3af4100d5ea3ca38b725a5 (diff) |
Rename InitAnySequence -> InitAnyPropertySequence, and convert some callers.
Change-Id: I410fef49679360f3308ec0f00bb032a2de0d7931
Reviewed-on: https://gerrit.libreoffice.org/40282
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sd/source/ui/tools')
-rw-r--r-- | sd/source/ui/tools/ConfigurationAccess.cxx | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/sd/source/ui/tools/ConfigurationAccess.cxx b/sd/source/ui/tools/ConfigurationAccess.cxx index dd10efa08cd3..306c8f4016eb 100644 --- a/sd/source/ui/tools/ConfigurationAccess.cxx +++ b/sd/source/ui/tools/ConfigurationAccess.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/configuration/theDefaultProvider.hpp> #include <com/sun/star/util/XChangesBatch.hpp> #include <comphelper/processfactory.hxx> +#include <comphelper/propertysequence.hxx> #include <tools/diagnose_ex.h> using namespace ::com::sun::star; @@ -59,22 +60,13 @@ void ConfigurationAccess::Initialize ( { try { - Sequence<Any> aCreationArguments(3); - aCreationArguments[0] <<= beans::PropertyValue( - "nodepath", - 0, - makeAny(rsRootName), - beans::PropertyState_DIRECT_VALUE); - aCreationArguments[1] <<= beans::PropertyValue( - "depth", - 0, - makeAny((sal_Int32)-1), - beans::PropertyState_DIRECT_VALUE); - aCreationArguments[2] <<= beans::PropertyValue( - "lazywrite", - 0, - makeAny(true), - beans::PropertyState_DIRECT_VALUE); + Sequence<Any> aCreationArguments(comphelper::InitAnyPropertySequence( + { + {"nodepath", makeAny(rsRootName)}, + {"depth", makeAny((sal_Int32)-1)}, + {"lazywrite", makeAny(true)} + })); + OUString sAccessService; if (eMode == READ_ONLY) sAccessService = "com.sun.star.configuration.ConfigurationAccess"; |