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 > AccessibleDialogControlShape::getSupportedServiceNames() throw (RuntimeException, std::exception)
{ {
Sequence<OUString> aNames { "com.sun.star.drawing.AccessibleShape" }; return { "com.sun.star.drawing.AccessibleShape" };
return aNames;
} }
// XAccessible // XAccessible

View File

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

View File

@@ -99,8 +99,7 @@ uno::Sequence< OUString > SIDEModel::getSupportedServiceNames() throw( uno::Runt
uno::Sequence< OUString > SIDEModel::getSupportedServiceNames_Static() uno::Sequence< OUString > SIDEModel::getSupportedServiceNames_Static()
{ {
uno::Sequence< OUString > aRet { "com.sun.star.script.BasicIDE" }; return { "com.sun.star.script.BasicIDE" };
return aRet;
} }
uno::Reference< uno::XInterface > SAL_CALL SIDEModel_createInstance( 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 > SAL_CALL UnoPolyPolygon::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
{ {
uno::Sequence<OUString> aRet { SERVICE_NAME }; return { SERVICE_NAME };
return aRet;
} }
B2DPolyPolygon UnoPolyPolygon::getPolyPolygon() const 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 > SAL_CALL CanvasBitmap::getSupportedServiceNames( ) throw (uno::RuntimeException, std::exception)
{ {
uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasBitmap" }; return { "com.sun.star.rendering.CanvasBitmap" };
return aRet;
} }
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -211,9 +211,7 @@ namespace canvas
uno::Sequence< OUString > SAL_CALL ParametricPolyPolygon::getSupportedServiceNames( ) throw (uno::RuntimeException, std::exception) uno::Sequence< OUString > SAL_CALL ParametricPolyPolygon::getSupportedServiceNames( ) throw (uno::RuntimeException, std::exception)
{ {
uno::Sequence< OUString > aRet { "com.sun.star.rendering.ParametricPolyPolygon" }; return { "com.sun.star.rendering.ParametricPolyPolygon" };
return aRet;
} }
ParametricPolyPolygon::~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 > SAL_CALL CanvasBitmap::getSupportedServiceNames( ) throw (uno::RuntimeException, std::exception)
{ {
uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasBitmap" }; return { "com.sun.star.rendering.CanvasBitmap" };
return aRet;
} }
BitmapEx CanvasBitmap::getBitmap() const 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 > SAL_CALL CanvasCustomSprite::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
{ {
uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasCustomSprite" }; return { "com.sun.star.rendering.CanvasCustomSprite" };
return aRet;
} }
// Sprite // Sprite

View File

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