summaryrefslogtreecommitdiff
path: root/include/basegfx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 08:28:50 +0200
committerNoel Grandin <noel@peralex.com>2016-04-13 13:27:50 +0200
commit2d72addff24ddab4842e2660062a58ccfd9cd0d3 (patch)
tree4f0f7d1c993b41c912d2f94ba1fdf00ffc66763b /include/basegfx
parent7573abfdef5b02f37d3bb7040a282f13e791101c (diff)
loplugin:passstuffbyref in basegfx
Change-Id: Ia7fc22152af2facf3134d9e0975cfb9608b2e931
Diffstat (limited to 'include/basegfx')
-rw-r--r--include/basegfx/curve/b2dcubicbezier.hxx8
-rw-r--r--include/basegfx/tools/unopolypolygon.hxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/include/basegfx/curve/b2dcubicbezier.hxx b/include/basegfx/curve/b2dcubicbezier.hxx
index b76dfe3deb6f..423e138f4c35 100644
--- a/include/basegfx/curve/b2dcubicbezier.hxx
+++ b/include/basegfx/curve/b2dcubicbezier.hxx
@@ -85,16 +85,16 @@ namespace basegfx
double getControlPolygonLength() const;
// data interface
- B2DPoint getStartPoint() const { return maStartPoint; }
+ const B2DPoint& getStartPoint() const { return maStartPoint; }
void setStartPoint(const B2DPoint& rValue) { maStartPoint = rValue; }
- B2DPoint getEndPoint() const { return maEndPoint; }
+ const B2DPoint& getEndPoint() const { return maEndPoint; }
void setEndPoint(const B2DPoint& rValue) { maEndPoint = rValue; }
- B2DPoint getControlPointA() const { return maControlPointA; }
+ const B2DPoint& getControlPointA() const { return maControlPointA; }
void setControlPointA(const B2DPoint& rValue) { maControlPointA = rValue; }
- B2DPoint getControlPointB() const { return maControlPointB; }
+ const B2DPoint& getControlPointB() const { return maControlPointB; }
void setControlPointB(const B2DPoint& rValue) { maControlPointB = rValue; }
/** get the tangent in point t
diff --git a/include/basegfx/tools/unopolypolygon.hxx b/include/basegfx/tools/unopolypolygon.hxx
index 5dd0e00c6154..e4a2206dada8 100644
--- a/include/basegfx/tools/unopolypolygon.hxx
+++ b/include/basegfx/tools/unopolypolygon.hxx
@@ -87,7 +87,7 @@ namespace unotools
sal_Int32 nNumberOfPoints ) const;
/// Get cow copy of internal polygon. not thread-safe outside this object.
- B2DPolyPolygon getPolyPolygonUnsafe() const
+ const B2DPolyPolygon& getPolyPolygonUnsafe() const
{
return maPolyPoly;
}