From f74da1315a5b2ec232a66944e41ff90231b383be Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 25 Jul 2017 09:34:01 +0200 Subject: use more comphelper::InitAnyPropertySequence Found with: git grep -n -A10 'Sequence.*Any' -- *.cxx | grep -B5 -w PropertyValueProvider and: git grep -n 'Sequence.*Any.*( *&' Change-Id: Icb18c98bdd3f8352817e443ff78de5df042859ad Reviewed-on: https://gerrit.libreoffice.org/40389 Tested-by: Jenkins Reviewed-by: Noel Grandin --- connectivity/source/drivers/hsqldb/HDriver.cxx | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/drivers/hsqldb/HDriver.cxx b/connectivity/source/drivers/hsqldb/HDriver.cxx index 6acb9a6c35d9..c1a90263286d 100644 --- a/connectivity/source/drivers/hsqldb/HDriver.cxx +++ b/connectivity/source/drivers/hsqldb/HDriver.cxx @@ -46,6 +46,7 @@ #include #include #include +#include #include #include #include @@ -824,20 +825,11 @@ namespace connectivity // arguments for creating the config access - Sequence< Any > aArguments(2); - // the path to the node to open - aArguments[0] <<= PropertyValue( - "nodepath", 0, - makeAny( OUString("/org.openoffice.Setup/L10N" ) ), - PropertyState_DIRECT_VALUE - ); - // the depth: -1 means unlimited - aArguments[1] <<= PropertyValue( - "depth", 0, - makeAny( (sal_Int32)-1 ), PropertyState_DIRECT_VALUE - ); - - + Sequence aArguments(comphelper::InitAnyPropertySequence( + { + {"nodepath", Any(OUString("/org.openoffice.Setup/L10N" ))}, // the path to the node to open + {"depth", Any((sal_Int32)-1)}, // the depth: -1 means unlimited + })); // create the access Reference< XPropertySet > xNode( xConfigProvider->createInstanceWithArguments( -- cgit