diff options
author | thb <thb@openoffice.org> | 2009-10-16 22:58:23 +0200 |
---|---|---|
committer | thb <thb@openoffice.org> | 2009-10-16 22:58:23 +0200 |
commit | 42c0c069b71db77b3a0f1617dac3c569df798625 (patch) | |
tree | 82d1cc56cc8e60aca8f11a790219fb9d6125ca12 /basegfx/inc/basegfx | |
parent | d3356548cf6aa4c53cb4c17395df82e8bbdea88f (diff) |
#i105939# Decided returning by const ref was a bad idea, coupling-
and in terms of unwanted side effects (think vector re-allocating the
mem). Fixed iterator-to-ptr conversion for obvious oversights.
Diffstat (limited to 'basegfx/inc/basegfx')
-rw-r--r-- | basegfx/inc/basegfx/polygon/b2dpolygon.hxx | 6 | ||||
-rw-r--r-- | basegfx/inc/basegfx/polygon/b2dpolypolygon.hxx | 2 | ||||
-rw-r--r-- | basegfx/inc/basegfx/range/b2dpolyrange.hxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygon.hxx b/basegfx/inc/basegfx/polygon/b2dpolygon.hxx index fb33a7d9b1fe..91544220f6ae 100644 --- a/basegfx/inc/basegfx/polygon/b2dpolygon.hxx +++ b/basegfx/inc/basegfx/polygon/b2dpolygon.hxx @@ -83,7 +83,7 @@ namespace basegfx sal_uInt32 count() const; /// Coordinate interface - const basegfx::B2DPoint& getB2DPoint(sal_uInt32 nIndex) const; + basegfx::B2DPoint getB2DPoint(sal_uInt32 nIndex) const; void setB2DPoint(sal_uInt32 nIndex, const basegfx::B2DPoint& rValue); /// Coordinate insert/append @@ -201,7 +201,7 @@ namespace basegfx @return The outer range of the bezier curve/polygon */ - const B2DRange& getB2DRange() const; + B2DRange getB2DRange() const; /** insert other 2D polygons @@ -262,7 +262,7 @@ namespace basegfx /// apply transformation given in matrix form void transform(const basegfx::B2DHomMatrix& rMatrix); - // point iterators + // point iterators (same iterator validity conditions as for vector) const B2DPoint* begin() const; const B2DPoint* end() const; B2DPoint* begin(); diff --git a/basegfx/inc/basegfx/polygon/b2dpolypolygon.hxx b/basegfx/inc/basegfx/polygon/b2dpolypolygon.hxx index 7b8119c5e43f..cff356de6d02 100644 --- a/basegfx/inc/basegfx/polygon/b2dpolypolygon.hxx +++ b/basegfx/inc/basegfx/polygon/b2dpolypolygon.hxx @@ -129,7 +129,7 @@ namespace basegfx // apply transformation given in matrix form to the polygon void transform(const basegfx::B2DHomMatrix& rMatrix); - // polygon iterators + // polygon iterators (same iterator validity conditions as for vector) const B2DPolygon* begin() const; const B2DPolygon* end() const; B2DPolygon* begin(); diff --git a/basegfx/inc/basegfx/range/b2dpolyrange.hxx b/basegfx/inc/basegfx/range/b2dpolyrange.hxx index bd10bc15b7b5..2202869dc921 100644 --- a/basegfx/inc/basegfx/range/b2dpolyrange.hxx +++ b/basegfx/inc/basegfx/range/b2dpolyrange.hxx @@ -131,7 +131,7 @@ namespace basegfx */ B2DPolyPolygon solveCrossovers() const; - // element iterators + // element iterators (same iterator validity conditions as for vector) const B2DRange* begin() const; const B2DRange* end() const; B2DRange* begin(); |