summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/polygon/b2dpolypolygon.cxx16
-rw-r--r--basegfx/source/polygon/b3dpolypolygon.cxx16
2 files changed, 16 insertions, 16 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();
}
};
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();
}
};