summaryrefslogtreecommitdiff
path: root/cppcanvas
diff options
context:
space:
mode:
Diffstat (limited to 'cppcanvas')
-rw-r--r--cppcanvas/source/mtfrenderer/polypolyaction.cxx3
-rw-r--r--cppcanvas/source/wrapper/implbitmap.cxx3
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);