diff options
Diffstat (limited to 'xmlhelp/source/treeview/tvfactory.cxx')
-rw-r--r-- | xmlhelp/source/treeview/tvfactory.cxx | 16 |
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 |