diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2011-12-13 19:18:39 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2011-12-13 20:58:39 +0100 |
commit | 7b7c3b6e1102e7f8856f047fe475ddbc53438f4e (patch) | |
tree | 41c1f1a879bdaa0bf329ec159923d58b918ec90d /basegfx/inc | |
parent | try to fix building lingucomponent on Mac (diff) | |
download | core-7b7c3b6e1102e7f8856f047fe475ddbc53438f4e.tar.gz core-7b7c3b6e1102e7f8856f047fe475ddbc53438f4e.zip |
More efficient insertion of B3DPolygons
* some cleanup - removed ugly-as-hell exposure of only parts of the
internal data struct on B2DPolygon (and reworked the only client
of that code)
* added stl-style begin/end to B3DPolyPolygon as well, mirroring
B2DPolyPolygon, plus adapting the insert() func to make use of
that (avoiding loads of temporaries)
Diffstat (limited to 'basegfx/inc')
-rw-r--r-- | basegfx/inc/basegfx/polygon/b2dpolygon.hxx | 6 | ||||
-rw-r--r-- | basegfx/inc/basegfx/polygon/b3dpolypolygon.hxx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygon.hxx b/basegfx/inc/basegfx/polygon/b2dpolygon.hxx index 694531ca3a64..da23bb4f1058 100644 --- a/basegfx/inc/basegfx/polygon/b2dpolygon.hxx +++ b/basegfx/inc/basegfx/polygon/b2dpolygon.hxx @@ -262,12 +262,6 @@ namespace basegfx /// apply transformation given in matrix form void transform(const basegfx::B2DHomMatrix& rMatrix); - - // point iterators (same iterator validity conditions as for vector) - const B2DPoint* begin() const; - const B2DPoint* end() const; - B2DPoint* begin(); - B2DPoint* end(); }; } // end of namespace basegfx diff --git a/basegfx/inc/basegfx/polygon/b3dpolypolygon.hxx b/basegfx/inc/basegfx/polygon/b3dpolypolygon.hxx index ffcc4f262e81..1964e5f78a4f 100644 --- a/basegfx/inc/basegfx/polygon/b3dpolypolygon.hxx +++ b/basegfx/inc/basegfx/polygon/b3dpolypolygon.hxx @@ -121,6 +121,12 @@ namespace basegfx // apply transformation given in matrix form to the polygon void transform(const basegfx::B3DHomMatrix& rMatrix); + + // polygon iterators (same iterator validity conditions as for vector) + const B3DPolygon* begin() const; + const B3DPolygon* end() const; + B3DPolygon* begin(); + B3DPolygon* end(); }; } // end of namespace basegfx |