loplugin:passstuffbyref in basegfx

Change-Id: Ia7fc22152af2facf3134d9e0975cfb9608b2e931
This commit is contained in:
Noel Grandin
2016-04-13 08:28:50 +02:00
parent 7573abfdef
commit 2d72addff2
3 changed files with 6 additions and 6 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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;
}