summaryrefslogtreecommitdiff
path: root/canvas/source/directx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-11-15 08:43:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-15 10:13:08 +0000
commit8e234c5b7d5bae66c544e581bee5770f3f83dd81 (patch)
tree7d78f03ce2231de4f727d1135449aeb8cba74e99 /canvas/source/directx
parent3bdd176731c351638f541a37b94094124f3c9f52 (diff)
use initialiser syntax for Sequence<OUString>
replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'canvas/source/directx')
-rw-r--r--canvas/source/directx/dx_canvasbitmap.cxx3
-rw-r--r--canvas/source/directx/dx_canvascustomsprite.cxx3
-rw-r--r--canvas/source/directx/dx_canvasfont.cxx3
-rw-r--r--canvas/source/directx/dx_config.cxx6
-rw-r--r--canvas/source/directx/dx_textlayout.cxx3
5 files changed, 6 insertions, 12 deletions
diff --git a/canvas/source/directx/dx_canvasbitmap.cxx b/canvas/source/directx/dx_canvasbitmap.cxx
index c30c74f94659..2af84a56dbab 100644
--- a/canvas/source/directx/dx_canvasbitmap.cxx
+++ b/canvas/source/directx/dx_canvasbitmap.cxx
@@ -256,8 +256,7 @@ namespace dxcanvas
uno::Sequence< OUString > SAL_CALL CanvasBitmap::getSupportedServiceNames( ) throw (uno::RuntimeException)
{
- uno::Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.rendering.CanvasBitmap";
+ uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasBitmap" };
return aRet;
}
diff --git a/canvas/source/directx/dx_canvascustomsprite.cxx b/canvas/source/directx/dx_canvascustomsprite.cxx
index b6295424e005..e56237a7ac98 100644
--- a/canvas/source/directx/dx_canvascustomsprite.cxx
+++ b/canvas/source/directx/dx_canvascustomsprite.cxx
@@ -93,8 +93,7 @@ namespace dxcanvas
uno::Sequence< OUString > SAL_CALL CanvasCustomSprite::getSupportedServiceNames() throw( uno::RuntimeException )
{
- uno::Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.rendering.CanvasCustomSprite";
+ uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasCustomSprite" };
return aRet;
}
diff --git a/canvas/source/directx/dx_canvasfont.cxx b/canvas/source/directx/dx_canvasfont.cxx
index 92528376b9d4..95ec59a5aae4 100644
--- a/canvas/source/directx/dx_canvasfont.cxx
+++ b/canvas/source/directx/dx_canvasfont.cxx
@@ -134,8 +134,7 @@ namespace dxcanvas
uno::Sequence< OUString > SAL_CALL CanvasFont::getSupportedServiceNames() throw( uno::RuntimeException )
{
- uno::Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.rendering.CanvasFont";
+ uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasFont" };
return aRet;
}
diff --git a/canvas/source/directx/dx_config.cxx b/canvas/source/directx/dx_config.cxx
index be4c3c70bbf2..2ab26c1ca78e 100644
--- a/canvas/source/directx/dx_config.cxx
+++ b/canvas/source/directx/dx_config.cxx
@@ -43,8 +43,7 @@ namespace dxcanvas
{
try
{
- uno::Sequence< OUString > aName(1);
- aName[0] = "DeviceBlacklist";
+ uno::Sequence< OUString > aName { "DeviceBlacklist" };
uno::Sequence< uno::Any > aProps( GetProperties( aName ));
uno::Sequence< sal_Int32 > aValues;
@@ -96,8 +95,7 @@ namespace dxcanvas
try
{
- uno::Sequence< OUString > aName(1);
- aName[0] = "DeviceBlacklist";
+ uno::Sequence< OUString > aName { "DeviceBlacklist" };
uno::Sequence< sal_Int32 > aValues( sizeof(DeviceInfo)/sizeof(sal_Int32)*maValues.size() );
diff --git a/canvas/source/directx/dx_textlayout.cxx b/canvas/source/directx/dx_textlayout.cxx
index fea9d9600a57..fc3111ab0db6 100644
--- a/canvas/source/directx/dx_textlayout.cxx
+++ b/canvas/source/directx/dx_textlayout.cxx
@@ -258,8 +258,7 @@ namespace dxcanvas
uno::Sequence< OUString > SAL_CALL TextLayout::getSupportedServiceNames() throw( uno::RuntimeException )
{
- uno::Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.rendering.TextLayout";
+ uno::Sequence< OUString > aRet { "com.sun.star.rendering.TextLayout" };
return aRet;
}