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