summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-08-18 13:38:16 +0200
committerJulien Nabet <serval2412@yahoo.fr>2019-08-18 14:32:56 +0200
commit51a30d7daee8779ef51d8db58559e4fe15665d1b (patch)
tree8efb87b20e93652410be2dec96c00ce4f818f0ee
parented128e17e7f090af06dfe5776a238c40f3a68fc9 (diff)
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
in uui, xmlhelp Change-Id: I588ed4154e6b21e178f2466c58abc08562eddf80 Reviewed-on: https://gerrit.libreoffice.org/77663 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--uui/source/interactionhandler.cxx10
-rw-r--r--xmlhelp/source/treeview/tvfactory.cxx5
2 files changed, 5 insertions, 10 deletions
diff --git a/uui/source/interactionhandler.cxx b/uui/source/interactionhandler.cxx
index 71286345a177..df06d4ea1d0e 100644
--- a/uui/source/interactionhandler.cxx
+++ b/uui/source/interactionhandler.cxx
@@ -91,13 +91,11 @@ UUIInteractionHandler::supportsService(OUString const & rServiceName)
uno::Sequence< OUString > SAL_CALL
UUIInteractionHandler::getSupportedServiceNames()
{
- uno::Sequence< OUString > aNames(3);
- aNames[0] = "com.sun.star.task.InteractionHandler";
- // added to indicate support for configuration.backend.MergeRecoveryRequest
- aNames[1] = "com.sun.star.configuration.backend.InteractionHandler";
- aNames[2] = "com.sun.star.uui.InteractionHandler";
+ return { "com.sun.star.task.InteractionHandler",
+ // added to indicate support for configuration.backend.MergeRecoveryRequest
+ "com.sun.star.configuration.backend.InteractionHandler",
// for backwards compatibility
- return aNames;
+ "com.sun.star.uui.InteractionHandler" };
}
void SAL_CALL
diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx
index 73adce6ae7b4..e4fc02c58e41 100644
--- a/xmlhelp/source/treeview/tvfactory.cxx
+++ b/xmlhelp/source/treeview/tvfactory.cxx
@@ -131,10 +131,7 @@ TVFactory::getImplementationName_static()
Sequence< OUString >
TVFactory::getSupportedServiceNames_static()
{
- Sequence< OUString > seq( 2 );
- seq[0] = "com.sun.star.help.TreeView";
- seq[1] = "com.sun.star.ucb.HiearchyDataSource";
- return seq;
+ return { "com.sun.star.help.TreeView", "com.sun.star.ucb.HiearchyDataSource" };
}
Reference< XSingleServiceFactory >