summaryrefslogtreecommitdiff
path: root/basic/source/uno/scriptcont.cxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-09-13 13:48:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-14 07:23:51 +0000
commitf1018190a8f791b7dca195f223b9c987a73a83af (patch)
tree180d64f8e79de8334d91a0ebb237a2c08066fafd /basic/source/uno/scriptcont.cxx
parent1e49e33c26950b606714c0dafb26cbcb2aeb3877 (diff)
tdf#88205 use list ctor for uno::Sequence a11y to canvas
Change-Id: Ib719c94c0488b8a48fdb013bc8fbd1a988595d18 Reviewed-on: https://gerrit.libreoffice.org/28866 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/uno/scriptcont.cxx')
-rw-r--r--basic/source/uno/scriptcont.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/basic/source/uno/scriptcont.cxx b/basic/source/uno/scriptcont.cxx
index 38fff90a6b56..ff1b567b22f1 100644
--- a/basic/source/uno/scriptcont.cxx
+++ b/basic/source/uno/scriptcont.cxx
@@ -1172,11 +1172,8 @@ OUString SAL_CALL SfxScriptLibraryContainer::getImplementationName( )
Sequence< OUString > SAL_CALL SfxScriptLibraryContainer::getSupportedServiceNames( )
throw (RuntimeException, std::exception)
{
- Sequence< OUString > aServiceNames( 2 );
- aServiceNames[0] = "com.sun.star.script.DocumentScriptLibraryContainer";
- // plus, for compatibility:
- aServiceNames[1] = "com.sun.star.script.ScriptLibraryContainer";
- return aServiceNames;
+ return {"com.sun.star.script.DocumentScriptLibraryContainer",
+ "com.sun.star.script.ScriptLibraryContainer"}; // for compatibility
}
// Implementation class SfxScriptLibrary