diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-06-08 10:31:10 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-06-08 13:20:39 +0200 |
commit | 46ea7c5d8be6b3e9436a44240117f83808d9d4c1 (patch) | |
tree | b09a90c0effaa8cc1422fbfdc0d7c8641eab5a4e /cppcanvas | |
parent | 7d9781367133f8d79bbd96e638be51119702930a (diff) |
Simplify Sequences initializations (cppcanvas)
Change-Id: If2d882060422b4e450de9ddda28d8d5c624c8e24
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116816
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/polypolyaction.cxx | 3 | ||||
-rw-r--r-- | cppcanvas/source/wrapper/implbitmap.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/cppcanvas/source/mtfrenderer/polypolyaction.cxx b/cppcanvas/source/mtfrenderer/polypolyaction.cxx index 6d679cbd0a81..cc9fec338ca0 100644 --- a/cppcanvas/source/mtfrenderer/polypolyaction.cxx +++ b/cppcanvas/source/mtfrenderer/polypolyaction.cxx @@ -278,8 +278,7 @@ namespace cppcanvas::internal rendering::RenderState aLocalState( maState ); ::canvas::tools::prependToRenderState(aLocalState, rTransformation); - uno::Sequence< rendering::Texture > aSeq(1); - aSeq[0] = maTexture; + uno::Sequence< rendering::Texture > aSeq { maTexture }; rCachedPrimitive = mpCanvas->getUNOCanvas()->fillTexturedPolyPolygon( mxPolyPoly, mpCanvas->getViewState(), diff --git a/cppcanvas/source/wrapper/implbitmap.cxx b/cppcanvas/source/wrapper/implbitmap.cxx index 9b7883f053a3..176fcd1cd849 100644 --- a/cppcanvas/source/wrapper/implbitmap.cxx +++ b/cppcanvas/source/wrapper/implbitmap.cxx @@ -84,8 +84,7 @@ namespace cppcanvas::internal } rendering::RenderState aLocalState( getRenderState() ); - uno::Sequence<rendering::ARGBColor> aCol(1); - aCol[0] = rendering::ARGBColor( nAlphaModulation, 1.0, 1.0, 1.0 ); + uno::Sequence<rendering::ARGBColor> aCol { { nAlphaModulation, 1.0, 1.0, 1.0 } }; aLocalState.DeviceColor = pCanvas->getUNOCanvas()->getDevice()->getDeviceColorSpace()->convertFromARGB(aCol); |