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:
committed by
Noel Grandin
parent
51cf057f4e
commit
0bd4154b17
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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(
|
||||
|
@@ -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
|
||||
|
@@ -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" };
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -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" };
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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" };
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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" };
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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" };
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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" };
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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()
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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" };
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user