summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basegfx/source/polygon/b2dpolygontriangulator.cxx2
-rw-r--r--include/basegfx/curve/b2dcubicbezier.hxx8
-rw-r--r--include/basegfx/tools/unopolypolygon.hxx2
3 files changed, 6 insertions, 6 deletions
diff --git a/basegfx/source/polygon/b2dpolygontriangulator.cxx b/basegfx/source/polygon/b2dpolygontriangulator.cxx
index 64d6e875d7ad..8d1948edaf9a 100644
--- a/basegfx/source/polygon/b2dpolygontriangulator.cxx
+++ b/basegfx/source/polygon/b2dpolygontriangulator.cxx
@@ -126,7 +126,7 @@ namespace basegfx
explicit Triangulator(const B2DPolyPolygon& rCandidate);
~Triangulator();
- const B2DPolygon getResult() const { return maResult; }
+ const B2DPolygon& getResult() const { return maResult; }
};
void Triangulator::handleClosingEdge(const B2DPoint& rStart, const B2DPoint& rEnd)
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;
}