summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-21 12:52:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-21 13:43:11 +0200
commitb2a574ec54c7e34789b401a540ff14511bf583ce (patch)
tree9387442f88605f52777d2c36894842f25603160d /scripting
parent9cbb4052d11d8fc5b408cfe75ddb5305f9a7461b (diff)
simplify some getSupportedServiceNames
Change-Id: I81195505d6006b6587f7b98c1545919083f0e588 Reviewed-on: https://gerrit.libreoffice.org/74497 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/provider/MasterScriptProvider.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx
index fe2d074c4632..57f66b1e0995 100644
--- a/scripting/source/provider/MasterScriptProvider.cxx
+++ b/scripting/source/provider/MasterScriptProvider.cxx
@@ -668,13 +668,10 @@ sal_Bool SAL_CALL MasterScriptProvider::supportsService( const OUString& service
Sequence< OUString > SAL_CALL MasterScriptProvider::getSupportedServiceNames( )
{
- OUString names[3];
-
- names[0] = "com.sun.star.script.provider.MasterScriptProvider";
- names[1] = "com.sun.star.script.browse.BrowseNode";
- names[2] = "com.sun.star.script.provider.ScriptProvider";
-
- return Sequence< OUString >( names, 3 );
+ return {
+ "com.sun.star.script.provider.MasterScriptProvider",
+ "com.sun.star.script.browse.BrowseNode",
+ "com.sun.star.script.provider.ScriptProvider" };
}
} // namespace func_provider