summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/browser
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-08-16 10:52:32 +0200
committerJulien Nabet <serval2412@yahoo.fr>2019-08-16 15:11:00 +0200
commit2379f36bd809c3cf3be71315a85946e273023a8c (patch)
treeb7a272976004302f4947e69551f67cb10f359b3b /dbaccess/source/ui/browser
parent9a03308fafee8f424eba399c1aae56af02beafb0 (diff)
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 <serval2412@yahoo.fr>
Diffstat (limited to 'dbaccess/source/ui/browser')
-rw-r--r--dbaccess/source/ui/browser/dbloader.cxx5
-rw-r--r--dbaccess/source/ui/browser/sbagrid.cxx7
2 files changed, 3 insertions, 9 deletions
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)