Kaydet (Commit) 563c2367 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

cppcheck: Function parameter 'rStartPos' should be passed by reference

Change-Id: Ie453e1a95b54de07463b6f5052a23d6632400b8d
üst bc6b28c7
...@@ -313,9 +313,9 @@ namespace cppcanvas ...@@ -313,9 +313,9 @@ namespace cppcanvas
// create line actions for text such as underline and // create line actions for text such as underline and
// strikeout // strikeout
::basegfx::B2DPolyPolygon createTextLinesPolyPolygon( const ::basegfx::B2DPoint rStartPos, ::basegfx::B2DPolyPolygon createTextLinesPolyPolygon( const ::basegfx::B2DPoint& rStartPos,
const double& rLineWidth, const double& rLineWidth,
const TextLineInfo& rTextLineInfo ) const TextLineInfo& rTextLineInfo )
{ {
// fill the polypolygon with all text lines // fill the polypolygon with all text lines
::basegfx::B2DPolyPolygon aTextLinesPolyPoly; ::basegfx::B2DPolyPolygon aTextLinesPolyPoly;
......
...@@ -196,9 +196,9 @@ namespace cppcanvas ...@@ -196,9 +196,9 @@ namespace cppcanvas
const double& rLineWidth, const double& rLineWidth,
const TextLineInfo& rTextLineInfo ); const TextLineInfo& rTextLineInfo );
::basegfx::B2DPolyPolygon createTextLinesPolyPolygon( const ::basegfx::B2DPoint rStartPos, ::basegfx::B2DPolyPolygon createTextLinesPolyPolygon( const ::basegfx::B2DPoint& rStartPos,
const double& rLineWidth, const double& rLineWidth,
const TextLineInfo& rTextLineInfo ); const TextLineInfo& rTextLineInfo );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment