From 1c3d143cd4e16271e1ede4484dac2a894f2c9c38 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 17 Aug 2019 11:58:10 +0200 Subject: tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor in ucb, xmlhelp Change-Id: I79f6378cff14c71987f77e0c08e0107bd4b3eefb Reviewed-on: https://gerrit.libreoffice.org/77623 Tested-by: Jenkins Reviewed-by: Julien Nabet --- xmlhelp/source/cxxhelp/provider/provider.cxx | 6 +----- xmlhelp/source/treeview/tvfactory.cxx | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'xmlhelp') diff --git a/xmlhelp/source/cxxhelp/provider/provider.cxx b/xmlhelp/source/cxxhelp/provider/provider.cxx index ff6db4be77a2..6c52e0357814 100644 --- a/xmlhelp/source/cxxhelp/provider/provider.cxx +++ b/xmlhelp/source/cxxhelp/provider/provider.cxx @@ -140,11 +140,7 @@ ContentProvider_CreateInstance( uno::Sequence< OUString > ContentProvider::getSupportedServiceNames_Static() { - uno::Sequence< OUString > aSNS( 2 ); - aSNS.getArray()[ 0 ] = MYUCP_CONTENT_PROVIDER_SERVICE_NAME1; - aSNS.getArray()[ 1 ] = MYUCP_CONTENT_PROVIDER_SERVICE_NAME2; - - return aSNS; + return { MYUCP_CONTENT_PROVIDER_SERVICE_NAME1, MYUCP_CONTENT_PROVIDER_SERVICE_NAME2 }; } // Service factory implementation. diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx index 16aa313d9333..73adce6ae7b4 100644 --- a/xmlhelp/source/treeview/tvfactory.cxx +++ b/xmlhelp/source/treeview/tvfactory.cxx @@ -117,8 +117,7 @@ TVFactory::createInstanceWithArguments( Sequence< OUString > SAL_CALL TVFactory::getAvailableServiceNames( ) { - Sequence seq { "com.sun.star.ucb.HierarchyDataReadAccess" }; - return seq; + return { "com.sun.star.ucb.HierarchyDataReadAccess" }; } // static -- cgit v1.2.3