xmlhelp/source/treeview/tvread.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 29a1fc0f31cf62fcb8fce388cdf6b780d2948e7b
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Sun Oct 17 12:02:58 2021 +0200
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Sun Oct 17 14:19:53 2021 +0200

    Simplify Sequence in xmlhelp
    
    Change-Id: I4a7363686498151a840b1c400d466b1c2d583e7a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123718
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/xmlhelp/source/treeview/tvread.cxx 
b/xmlhelp/source/treeview/tvread.cxx
index a2e3afd50769..8a33329f6810 100644
--- a/xmlhelp/source/treeview/tvread.cxx
+++ b/xmlhelp/source/treeview/tvread.cxx
@@ -762,14 +762,11 @@ TVChildTarget::getHierAccess( const Reference< 
XMultiServiceFactory >& sProvider
 
     if( sProvider.is() )
     {
-        Sequence< Any > seq(1);
-        seq[0] <<= OUString::createFromAscii( file );
-
         try
         {
             xHierAccess =
                 Reference< XHierarchicalNameAccess >
-                ( sProvider->createInstanceWithArguments( 
"com.sun.star.configuration.ConfigurationAccess", seq ),
+                ( sProvider->createInstanceWithArguments( 
"com.sun.star.configuration.ConfigurationAccess", { 
makeAny(OUString::createFromAscii(file)) }),
                   UNO_QUERY );
         }
         catch( const css::uno::Exception& )

Reply via email to