summaryrefslogtreecommitdiff
path: root/xmlhelp/source/treeview/tvfactory.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-25 09:34:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-25 12:03:17 +0200
commitf74da1315a5b2ec232a66944e41ff90231b383be (patch)
tree60d464c45df3531013642d61cbc8302ac815a1ae /xmlhelp/source/treeview/tvfactory.cxx
parent04a6a5d5cdc6889c6f0e41b3df537f59baeee9f9 (diff)
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 <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlhelp/source/treeview/tvfactory.cxx')
-rw-r--r--xmlhelp/source/treeview/tvfactory.cxx16
1 files changed, 7 insertions, 9 deletions
diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx
index 5e0ff8832ebf..bd685d19dab2 100644
--- a/xmlhelp/source/treeview/tvfactory.cxx
+++ b/xmlhelp/source/treeview/tvfactory.cxx
@@ -21,6 +21,7 @@
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <comphelper/processfactory.hxx>
+#include <comphelper/propertysequence.hxx>
#include <cppuhelper/supportsservice.hxx>
#include "tvfactory.hxx"
#include "tvread.hxx"
@@ -66,15 +67,12 @@ Reference< XInterface > SAL_CALL
TVFactory::createInstance(
const OUString& aServiceSpecifier )
{
- Sequence< Any > seq( 1 );
- seq[0] <<= PropertyValue(
- "nodepath",
- -1,
- Any( OUString() ),
- PropertyState_DIRECT_VALUE );
-
- return createInstanceWithArguments( aServiceSpecifier,
- seq );
+ uno::Sequence<uno::Any> seq(comphelper::InitAnyPropertySequence(
+ {
+ {"nodepath", uno::Any(OUString())}
+ }));
+
+ return createInstanceWithArguments( aServiceSpecifier, seq );
}
Reference< XInterface > SAL_CALL