From 2379f36bd809c3cf3be71315a85946e273023a8c Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 16 Aug 2019 10:52:32 +0200 Subject: tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor in dbaccess Change-Id: I7f91b5fd8ac1dfbf6244c408391a595f5250aa71 Reviewed-on: https://gerrit.libreoffice.org/77563 Tested-by: Jenkins Reviewed-by: Julien Nabet --- dbaccess/source/ui/browser/dbloader.cxx | 5 +---- dbaccess/source/ui/browser/sbagrid.cxx | 7 ++----- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'dbaccess/source/ui/browser') diff --git a/dbaccess/source/ui/browser/dbloader.cxx b/dbaccess/source/ui/browser/dbloader.cxx index a86fb44eb518..d4903a4de4fa 100644 --- a/dbaccess/source/ui/browser/dbloader.cxx +++ b/dbaccess/source/ui/browser/dbloader.cxx @@ -130,10 +130,7 @@ Sequence< OUString > SAL_CALL DBContentLoader::getSupportedServiceNames() // ORegistryServiceManager_Static Sequence< OUString > DBContentLoader::getSupportedServiceNames_Static() throw( ) { - Sequence< OUString > aSNS( 2 ); - aSNS[0] = "com.sun.star.frame.FrameLoader"; - aSNS[1] = "com.sun.star.sdb.ContentLoader"; - return aSNS; + return Sequence< OUString > { "com.sun.star.frame.FrameLoader", "com.sun.star.sdb.ContentLoader" }; } void SAL_CALL DBContentLoader::load(const Reference< XFrame > & rFrame, const OUString& rURL, diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index 1e022db90320..eba9dd077461 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -137,11 +137,8 @@ OUString SbaXGridControl::getImplementationName_Static() Sequence< OUString> SbaXGridControl::getSupportedServiceNames_Static() { - Sequence< OUString> aSupported(3); - aSupported[0] = "com.sun.star.form.control.InteractionGridControl"; - aSupported[1] = "com.sun.star.form.control.GridControl"; - aSupported[2] = "com.sun.star.awt.UnoControl"; - return aSupported; + return Sequence< OUString> { "com.sun.star.form.control.InteractionGridControl", "com.sun.star.form.control.GridControl", + "com.sun.star.awt.UnoControl" }; } SbaXGridControl::SbaXGridControl(const Reference< XComponentContext >& _rM) -- cgit v1.2.3