summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sdext/source/presenter/PresenterCanvasHelper.cxx7
-rw-r--r--sdext/source/presenter/PresenterWindowManager.cxx6
2 files changed, 5 insertions, 8 deletions
diff --git a/sdext/source/presenter/PresenterCanvasHelper.cxx b/sdext/source/presenter/PresenterCanvasHelper.cxx
index 697a84d0a8ec..8381f8d5aabd 100644
--- a/sdext/source/presenter/PresenterCanvasHelper.cxx
+++ b/sdext/source/presenter/PresenterCanvasHelper.cxx
@@ -71,11 +71,10 @@ void PresenterCanvasHelper::PaintRectangle (
return;
// Create a clip polypolygon that has the content box as hole.
- ::std::vector<awt::Rectangle> aRectangles
- {
- PresenterGeometryHelper::Intersection(rRepaintBox, rOuterBoundingBox)
- };
+ ::std::vector<awt::Rectangle> aRectangles;
aRectangles.reserve(2);
+ aRectangles.push_back(
+ PresenterGeometryHelper::Intersection(rRepaintBox, rOuterBoundingBox));
if (rContentBoundingBox.Width > 0 && rContentBoundingBox.Height > 0)
aRectangles.push_back(
PresenterGeometryHelper::Intersection(rRepaintBox, rContentBoundingBox));
diff --git a/sdext/source/presenter/PresenterWindowManager.cxx b/sdext/source/presenter/PresenterWindowManager.cxx
index 9a541842286d..24115fa52523 100644
--- a/sdext/source/presenter/PresenterWindowManager.cxx
+++ b/sdext/source/presenter/PresenterWindowManager.cxx
@@ -989,11 +989,9 @@ Reference<rendering::XPolyPolygon2D> PresenterWindowManager::CreateClipPolyPolyg
// Create a clip polygon that includes the whole update area but has the
// content windows as holes.
const sal_Int32 nPaneCount (mpPaneContainer->maPanes.size());
- ::std::vector<awt::Rectangle> aRectangles
- {
- mxParentWindow->getPosSize()
- };
+ ::std::vector<awt::Rectangle> aRectangles;
aRectangles.reserve(1+nPaneCount);
+ aRectangles.push_back(mxParentWindow->getPosSize());
for (const auto& pDescriptor : mpPaneContainer->maPanes)
{
if ( ! pDescriptor->mbIsActive)