summaryrefslogtreecommitdiff
path: root/basegfx/source/polygon/b2dpolypolygon.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-24 14:09:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-24 15:48:51 +0000
commit3a74745367a73ed9351379fc32bbe9253cdae697 (patch)
tree0fec3ca84576a0f51e4f48cdda82b67e7282c3ab /basegfx/source/polygon/b2dpolypolygon.cxx
parentc9126dfbabcde1bf8b157942a5f5134ad547b957 (diff)
vector::data seems more natural than &vector::front
Change-Id: I0ce48075ad186cf1f9bd3e13fa76269fa9819af1
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();
}
};