summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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;
}