diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-10-16 12:46:10 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-10-16 18:11:13 +0200 |
commit | d64a6e2245169e5e4a3f8bc5388b4fff4984e5f4 (patch) | |
tree | d2117f8cfdefbf5401dbe1dc8b423a6d937f2e60 /sdext/source/presenter/PresenterPaneBorderPainter.cxx | |
parent | 5393f9a53eb8b33537aedd03b7c9efc5222748d6 (diff) |
Simplify vector initialization in sdext
Change-Id: If3cebeadff5496ae214614b49116060d24b6082f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123696
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sdext/source/presenter/PresenterPaneBorderPainter.cxx')
-rw-r--r-- | sdext/source/presenter/PresenterPaneBorderPainter.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sdext/source/presenter/PresenterPaneBorderPainter.cxx b/sdext/source/presenter/PresenterPaneBorderPainter.cxx index 8fcc2a61ba30..6c0198c7e76b 100644 --- a/sdext/source/presenter/PresenterPaneBorderPainter.cxx +++ b/sdext/source/presenter/PresenterPaneBorderPainter.cxx @@ -700,9 +700,11 @@ void PresenterPaneBorderPainter::Renderer::SetupClipping ( { awt::Rectangle aInnerBox ( pStyle->RemoveBorder(rOuterBox, drawing::framework::BorderType_TOTAL_BORDER)); - ::std::vector<awt::Rectangle> aRectangles; - aRectangles.push_back(PresenterGeometryHelper::Intersection(rUpdateBox, rOuterBox)); - aRectangles.push_back(PresenterGeometryHelper::Intersection(rUpdateBox, aInnerBox)); + ::std::vector<awt::Rectangle> aRectangles + { + PresenterGeometryHelper::Intersection(rUpdateBox, rOuterBox), + PresenterGeometryHelper::Intersection(rUpdateBox, aInnerBox) + }; mxViewStateClip = PresenterGeometryHelper::CreatePolygon( aRectangles, mxCanvas->getDevice()); |