diff options
Diffstat (limited to 'basegfx/source/polygon/b3dpolypolygon.cxx')
-rw-r--r-- | basegfx/source/polygon/b3dpolypolygon.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/basegfx/source/polygon/b3dpolypolygon.cxx b/basegfx/source/polygon/b3dpolypolygon.cxx index 74c8b835298a..9aa8c7809982 100644 --- a/basegfx/source/polygon/b3dpolypolygon.cxx +++ b/basegfx/source/polygon/b3dpolypolygon.cxx @@ -155,34 +155,34 @@ public: const basegfx::B3DPolygon* begin() const { - if(maPolygons.empty()) + if (maPolygons.empty()) return nullptr; else - return &maPolygons.front(); + return maPolygons.data(); } const basegfx::B3DPolygon* end() const { - if(maPolygons.empty()) + if (maPolygons.empty()) return nullptr; else - return (&maPolygons.back())+1; + return maPolygons.data() + maPolygons.size(); } basegfx::B3DPolygon* begin() { - if(maPolygons.empty()) + if (maPolygons.empty()) return nullptr; else - return &maPolygons.front(); + return maPolygons.data(); } basegfx::B3DPolygon* end() { - if(maPolygons.empty()) + if (maPolygons.empty()) return nullptr; else - return &(maPolygons.back())+1; + return maPolygons.data() + maPolygons.size(); } }; |