summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-10-17 12:02:58 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-10-17 14:19:53 +0200
commit29a1fc0f31cf62fcb8fce388cdf6b780d2948e7b (patch)
tree3605670e9198fa2de6c3c3bad7bcec15764830be /xmlhelp
parentcf3971a9414f52b116c1c21f267128ffa67f171b (diff)
Simplify Sequence in xmlhelp
Change-Id: I4a7363686498151a840b1c400d466b1c2d583e7a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123718 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/treeview/tvread.cxx5
1 files changed, 1 insertions, 4 deletions
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& )