summaryrefslogtreecommitdiff
path: root/basegfx/source/polygon/b2dpolypolygon.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basegfx/source/polygon/b2dpolypolygon.cxx')
-rw-r--r--basegfx/source/polygon/b2dpolypolygon.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/basegfx/source/polygon/b2dpolypolygon.cxx b/basegfx/source/polygon/b2dpolypolygon.cxx
index f1032f108a86..9c6b1eb50fe9 100644
--- a/basegfx/source/polygon/b2dpolypolygon.cxx
+++ b/basegfx/source/polygon/b2dpolypolygon.cxx
@@ -137,34 +137,34 @@ public:
const basegfx::B2DPolygon* begin() const
{
- if(maPolygons.empty())
+ if (maPolygons.empty())
return nullptr;
else
- return &maPolygons.front();
+ return maPolygons.data();
}
const basegfx::B2DPolygon* end() const
{
- if(maPolygons.empty())
+ if (maPolygons.empty())
return nullptr;
else
- return (&maPolygons.back())+1;
+ return maPolygons.data() + maPolygons.size();
}
basegfx::B2DPolygon* begin()
{
- if(maPolygons.empty())
+ if (maPolygons.empty())
return nullptr;
else
- return &maPolygons.front();
+ return maPolygons.data();
}
basegfx::B2DPolygon* end()
{
- if(maPolygons.empty())
+ if (maPolygons.empty())
return nullptr;
else
- return &(maPolygons.back())+1;
+ return maPolygons.data() + maPolygons.size();
}
};