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 <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Muhammet Kara
2016-08-01 15:00:00 +03:00
committed by Noel Grandin
parent 51cf057f4e
commit 0bd4154b17
19 changed files with 19 additions and 53 deletions

View File

@@ -301,8 +301,7 @@ sal_Bool AccessibleDialogControlShape::supportsService( const OUString& rService
Sequence< OUString > AccessibleDialogControlShape::getSupportedServiceNames() throw (RuntimeException, std::exception)
{
Sequence<OUString> aNames { "com.sun.star.drawing.AccessibleShape" };
return aNames;
return { "com.sun.star.drawing.AccessibleShape" };
}
// XAccessible

View File

@@ -585,8 +585,7 @@ sal_Bool AccessibleDialogWindow::supportsService( const OUString& rServiceName )
Sequence< OUString > AccessibleDialogWindow::getSupportedServiceNames() throw (RuntimeException, std::exception)
{
Sequence<OUString> aNames { "com.sun.star.awt.AccessibleWindow" };
return aNames;
return { "com.sun.star.awt.AccessibleWindow" };
}
// XAccessible

View File

@@ -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(

View File

@@ -448,9 +448,7 @@ namespace unotools
uno::Sequence< OUString > SAL_CALL UnoPolyPolygon::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
{
uno::Sequence<OUString> aRet { SERVICE_NAME };
return aRet;
return { SERVICE_NAME };
}
B2DPolyPolygon UnoPolyPolygon::getPolyPolygon() const

View File

@@ -220,9 +220,7 @@ namespace cairocanvas
uno::Sequence< OUString > SAL_CALL CanvasBitmap::getSupportedServiceNames( ) throw (uno::RuntimeException, std::exception)
{
uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasBitmap" };
return aRet;
return { "com.sun.star.rendering.CanvasBitmap" };
}
}

View File

@@ -144,9 +144,7 @@ namespace cairocanvas
uno::Sequence< OUString > SAL_CALL CanvasCustomSprite::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
{
uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasCustomSprite" };
return aRet;
return { "com.sun.star.rendering.CanvasCustomSprite" };
}
}

View File

@@ -149,9 +149,7 @@ namespace cairocanvas
uno::Sequence< OUString > SAL_CALL CanvasFont::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
{
uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasFont" };
return aRet;
return { "com.sun.star.rendering.CanvasFont" };
}
vcl::Font CanvasFont::getVCLFont() const

View File

@@ -593,9 +593,7 @@ namespace cairocanvas
uno::Sequence< OUString > SAL_CALL TextLayout::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
{
uno::Sequence< OUString > aRet { "com.sun.star.rendering.TextLayout" };
return aRet;
return { "com.sun.star.rendering.TextLayout" };
}
}

View File

@@ -251,9 +251,7 @@ namespace dxcanvas
uno::Sequence< OUString > SAL_CALL CanvasBitmap::getSupportedServiceNames( ) throw (uno::RuntimeException)
{
uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasBitmap" };
return aRet;
return { "com.sun.star.rendering.CanvasBitmap" };
}
}

View File

@@ -93,9 +93,7 @@ namespace dxcanvas
uno::Sequence< OUString > SAL_CALL CanvasCustomSprite::getSupportedServiceNames() throw( uno::RuntimeException )
{
uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasCustomSprite" };
return aRet;
return { "com.sun.star.rendering.CanvasCustomSprite" };
}
void CanvasCustomSprite::redraw() const

View File

@@ -134,9 +134,7 @@ namespace dxcanvas
uno::Sequence< OUString > SAL_CALL CanvasFont::getSupportedServiceNames() throw( uno::RuntimeException )
{
uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasFont" };
return aRet;
return { "com.sun.star.rendering.CanvasFont" };
}
double CanvasFont::getCellAscent() const

View File

@@ -247,9 +247,7 @@ namespace dxcanvas
uno::Sequence< OUString > SAL_CALL TextLayout::getSupportedServiceNames() throw( uno::RuntimeException )
{
uno::Sequence< OUString > aRet { "com.sun.star.rendering.TextLayout" };
return aRet;
return { "com.sun.star.rendering.TextLayout" };
}
}

View File

@@ -231,8 +231,7 @@ sal_Bool CanvasFactory::supportsService( OUString const & serviceName )
Sequence<OUString> CanvasFactory::getSupportedServiceNames()
throw (RuntimeException, std::exception)
{
OUString name("com.sun.star.rendering.CanvasFactory");
return Sequence<OUString>(&name, 1);
return { "com.sun.star.rendering.CanvasFactory" };
}
// XMultiComponentFactory

View File

@@ -91,9 +91,7 @@ namespace canvas
uno::Sequence< OUString > SAL_CALL CachedPrimitiveBase::getSupportedServiceNames( ) throw (uno::RuntimeException, std::exception)
{
uno::Sequence< OUString > aRet { "com.sun.star.rendering.CachedBitmap" };
return aRet;
return { "com.sun.star.rendering.CachedBitmap" };
}
}

View File

@@ -211,9 +211,7 @@ namespace canvas
uno::Sequence< OUString > SAL_CALL ParametricPolyPolygon::getSupportedServiceNames( ) throw (uno::RuntimeException, std::exception)
{
uno::Sequence< OUString > aRet { "com.sun.star.rendering.ParametricPolyPolygon" };
return aRet;
return { "com.sun.star.rendering.ParametricPolyPolygon" };
}
ParametricPolyPolygon::~ParametricPolyPolygon()

View File

@@ -86,9 +86,7 @@ namespace vclcanvas
uno::Sequence< OUString > SAL_CALL CanvasBitmap::getSupportedServiceNames( ) throw (uno::RuntimeException, std::exception)
{
uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasBitmap" };
return aRet;
return { "com.sun.star.rendering.CanvasBitmap" };
}
BitmapEx CanvasBitmap::getBitmap() const

View File

@@ -127,9 +127,7 @@ namespace vclcanvas
uno::Sequence< OUString > SAL_CALL CanvasCustomSprite::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
{
uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasCustomSprite" };
return aRet;
return { "com.sun.star.rendering.CanvasCustomSprite" };
}
// Sprite

View File

@@ -161,9 +161,7 @@ namespace vclcanvas
uno::Sequence< OUString > SAL_CALL CanvasFont::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
{
uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasFont" };
return aRet;
return { "com.sun.star.rendering.CanvasFont" };
}
vcl::Font CanvasFont::getVCLFont() const

View File

@@ -472,9 +472,7 @@ namespace vclcanvas
uno::Sequence< OUString > SAL_CALL TextLayout::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
{
uno::Sequence< OUString > aRet { "com.sun.star.rendering.TextLayout" };
return aRet;
return { "com.sun.star.rendering.TextLayout" };
}
}