diff options
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/cairo/cairo_canvashelper.cxx | 4 | ||||
-rw-r--r-- | canvas/source/cairo/cairo_textlayout.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx index 8a80912886a5..dcd752cf6a52 100644 --- a/canvas/source/cairo/cairo_canvashelper.cxx +++ b/canvas/source/cairo/cairo_canvashelper.cxx @@ -694,7 +694,7 @@ namespace cairocanvas for( sal_uInt32 nPolygonIndex = 0; nPolygonIndex < aPolyPolygon.count(); nPolygonIndex++ ) { - ::basegfx::B2DPolygon aPolygon( aPolyPolygon.getB2DPolygon( nPolygonIndex ) ); + const ::basegfx::B2DPolygon& aPolygon( aPolyPolygon.getB2DPolygon( nPolygonIndex ) ); const sal_uInt32 nPointCount( aPolygon.count() ); // to correctly render closed curves, need to output first // point twice (so output one additional point) @@ -831,7 +831,7 @@ namespace cairocanvas // emulate rendering::PathJoinType::NONE by painting single edges for(sal_uInt32 a(0); a < rPolyPoly.count(); a++) { - const basegfx::B2DPolygon aCandidate(rPolyPoly.getB2DPolygon(a)); + const basegfx::B2DPolygon& aCandidate(rPolyPoly.getB2DPolygon(a)); const sal_uInt32 nPointCount(aCandidate.count()); if(nPointCount) diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx index bce2469d6b9d..087f0479bf05 100644 --- a/canvas/source/cairo/cairo_textlayout.cxx +++ b/canvas/source/cairo/cairo_textlayout.cxx @@ -399,7 +399,7 @@ namespace cairocanvas if (cairo_glyphs.empty()) continue; - vcl::Font aFont = rOutDev.GetFont(); + const vcl::Font& aFont = rOutDev.GetFont(); long nWidth = aFont.GetAverageFontWidth(); long nHeight = aFont.GetFontHeight(); if (nWidth == 0) |