diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-05-22 12:18:47 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-05-22 12:50:52 +0200 |
commit | 563c2367104d11bf437c52def5d5381f1af3b29a (patch) | |
tree | 0eb86ecc3679d3972f08eab4f79be92134ff250c | |
parent | bc6b28c7468fc7e66d1e4a1a1447a938e9e03a8a (diff) |
cppcheck: Function parameter 'rStartPos' should be passed by reference
Change-Id: Ie453e1a95b54de07463b6f5052a23d6632400b8d
-rw-r--r-- | cppcanvas/source/mtfrenderer/mtftools.cxx | 6 | ||||
-rw-r--r-- | cppcanvas/source/mtfrenderer/mtftools.hxx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/cppcanvas/source/mtfrenderer/mtftools.cxx b/cppcanvas/source/mtfrenderer/mtftools.cxx index 458b0bc47d26..52d5d6aa9e6b 100644 --- a/cppcanvas/source/mtfrenderer/mtftools.cxx +++ b/cppcanvas/source/mtfrenderer/mtftools.cxx @@ -313,9 +313,9 @@ namespace cppcanvas // create line actions for text such as underline and // strikeout - ::basegfx::B2DPolyPolygon createTextLinesPolyPolygon( const ::basegfx::B2DPoint rStartPos, - const double& rLineWidth, - const TextLineInfo& rTextLineInfo ) + ::basegfx::B2DPolyPolygon createTextLinesPolyPolygon( const ::basegfx::B2DPoint& rStartPos, + const double& rLineWidth, + const TextLineInfo& rTextLineInfo ) { // fill the polypolygon with all text lines ::basegfx::B2DPolyPolygon aTextLinesPolyPoly; diff --git a/cppcanvas/source/mtfrenderer/mtftools.hxx b/cppcanvas/source/mtfrenderer/mtftools.hxx index 42e1db34128d..4c0bbec6f0e5 100644 --- a/cppcanvas/source/mtfrenderer/mtftools.hxx +++ b/cppcanvas/source/mtfrenderer/mtftools.hxx @@ -196,9 +196,9 @@ namespace cppcanvas const double& rLineWidth, const TextLineInfo& rTextLineInfo ); - ::basegfx::B2DPolyPolygon createTextLinesPolyPolygon( const ::basegfx::B2DPoint rStartPos, - const double& rLineWidth, - const TextLineInfo& rTextLineInfo ); + ::basegfx::B2DPolyPolygon createTextLinesPolyPolygon( const ::basegfx::B2DPoint& rStartPos, + const double& rLineWidth, + const TextLineInfo& rTextLineInfo ); } } |