summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-27 21:08:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-28 16:51:51 +0200
commitff41cf1b8dbeb36b8824257acb5c5ba272415108 (patch)
treef10fd5ac3dac8b21ab0540a2fc66ee3ebaf16a7e /xmlhelp
parent9c9e5b5ee7f1144c20624ac9471354a218638175 (diff)
loplugin:oncevar
Change-Id: I3c014f53607a849c743a2fd1aa47d03d5af978fb Reviewed-on: https://gerrit.libreoffice.org/76495 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/treeview/tvread.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx
index 9dac255a8320..1aacebcf8768 100644
--- a/xmlhelp/source/treeview/tvread.cxx
+++ b/xmlhelp/source/treeview/tvread.cxx
@@ -773,15 +773,13 @@ TVChildTarget::getHierAccess( const Reference< XMultiServiceFactory >& sProvider
if( sProvider.is() )
{
Sequence< Any > seq(1);
- OUString sReaderService( "com.sun.star.configuration.ConfigurationAccess" );
-
seq[0] <<= OUString::createFromAscii( file );
try
{
xHierAccess =
Reference< XHierarchicalNameAccess >
- ( sProvider->createInstanceWithArguments( sReaderService,seq ),
+ ( sProvider->createInstanceWithArguments( "com.sun.star.configuration.ConfigurationAccess", seq ),
UNO_QUERY );
}
catch( const css::uno::Exception& )