From 0bd4154b176af84e036c4f0869e635e9fcefed1c Mon Sep 17 00:00:00 2001 From: Muhammet Kara Date: Mon, 1 Aug 2016 15:00:00 +0300 Subject: tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor in basctl, basegfx, canvas Change-Id: I59383d2599793b99b560333387e163a3d80eecec Reviewed-on: https://gerrit.libreoffice.org/27778 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basctl/source/accessibility/accessibledialogcontrolshape.cxx | 3 +-- basctl/source/accessibility/accessibledialogwindow.cxx | 3 +-- basctl/source/basicide/unomodel.cxx | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'basctl') diff --git a/basctl/source/accessibility/accessibledialogcontrolshape.cxx b/basctl/source/accessibility/accessibledialogcontrolshape.cxx index a0b4d4716a58..b4f8ac0971ca 100644 --- a/basctl/source/accessibility/accessibledialogcontrolshape.cxx +++ b/basctl/source/accessibility/accessibledialogcontrolshape.cxx @@ -301,8 +301,7 @@ sal_Bool AccessibleDialogControlShape::supportsService( const OUString& rService Sequence< OUString > AccessibleDialogControlShape::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence aNames { "com.sun.star.drawing.AccessibleShape" }; - return aNames; + return { "com.sun.star.drawing.AccessibleShape" }; } // XAccessible diff --git a/basctl/source/accessibility/accessibledialogwindow.cxx b/basctl/source/accessibility/accessibledialogwindow.cxx index dc56db4a6dbc..18e07bc6a340 100644 --- a/basctl/source/accessibility/accessibledialogwindow.cxx +++ b/basctl/source/accessibility/accessibledialogwindow.cxx @@ -585,8 +585,7 @@ sal_Bool AccessibleDialogWindow::supportsService( const OUString& rServiceName ) Sequence< OUString > AccessibleDialogWindow::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence aNames { "com.sun.star.awt.AccessibleWindow" }; - return aNames; + return { "com.sun.star.awt.AccessibleWindow" }; } // XAccessible diff --git a/basctl/source/basicide/unomodel.cxx b/basctl/source/basicide/unomodel.cxx index fe1942b07018..5cceb2a599c5 100644 --- a/basctl/source/basicide/unomodel.cxx +++ b/basctl/source/basicide/unomodel.cxx @@ -99,8 +99,7 @@ uno::Sequence< OUString > SIDEModel::getSupportedServiceNames() throw( uno::Runt uno::Sequence< OUString > SIDEModel::getSupportedServiceNames_Static() { - uno::Sequence< OUString > aRet { "com.sun.star.script.BasicIDE" }; - return aRet; + return { "com.sun.star.script.BasicIDE" }; } uno::Reference< uno::XInterface > SAL_CALL SIDEModel_createInstance( -- cgit