summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-08-17 11:58:10 +0200
committerJulien Nabet <serval2412@yahoo.fr>2019-08-17 13:30:06 +0200
commit1c3d143cd4e16271e1ede4484dac2a894f2c9c38 (patch)
tree25e54678ae94a71c394a8f8f62e50482a4d533d8 /xmlhelp
parentb4092c738321cd9f9e2cba18a49519abcbd4451a (diff)
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 <serval2412@yahoo.fr>
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/provider.cxx6
-rw-r--r--xmlhelp/source/treeview/tvfactory.cxx3
2 files changed, 2 insertions, 7 deletions
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<OUString> seq { "com.sun.star.ucb.HierarchyDataReadAccess" };
- return seq;
+ return { "com.sun.star.ucb.HierarchyDataReadAccess" };
}
// static