summaryrefslogtreecommitdiff
path: root/basegfx/source/polygon
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-08-27 15:26:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-27 21:24:20 +0200
commit8024118d5c9ac964e35e8c4163ca14a5cd78cc3d (patch)
tree8dd3ef5a8f61723fc3bf3e1d8c5f37a0204bc825 /basegfx/source/polygon
parent707ac13a3f700c8e4a7f08bdcd5d5321d0a28bc5 (diff)
clang-tidy:readability-redundant-member-init
Change-Id: Ibeff6e5cbc20ab86b1e9cb96292acb340849ede3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121149 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx/source/polygon')
-rw-r--r--basegfx/source/polygon/b2dpolygon.cxx13
-rw-r--r--basegfx/source/polygon/b2dpolypolygon.cxx8
-rw-r--r--basegfx/source/polygon/b2dtrapezoid.cxx3
-rw-r--r--basegfx/source/polygon/b3dpolygon.cxx10
-rw-r--r--basegfx/source/polygon/b3dpolypolygon.cxx2
5 files changed, 7 insertions, 29 deletions
diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx
index 141982aef10b..2baa16225227 100644
--- a/basegfx/source/polygon/b2dpolygon.cxx
+++ b/basegfx/source/polygon/b2dpolygon.cxx
@@ -250,8 +250,7 @@ public:
{}
ControlVectorArray2D(const ControlVectorArray2D& rOriginal, sal_uInt32 nIndex, sal_uInt32 nCount)
- : maVector(),
- mnUsedVectors(0)
+ : mnUsedVectors(0)
{
ControlVectorPair2DVector::const_iterator aStart(rOriginal.maVector.begin());
aStart += nIndex;
@@ -468,9 +467,6 @@ private:
public:
ImplBufferedData()
- : basegfx::SystemDependentDataHolder(),
- mpDefaultSubdivision(),
- mpB2DRange()
{
}
@@ -600,15 +596,11 @@ public:
ImplB2DPolygon()
: maPoints(0),
- mpControlVector(),
- mpBufferedData(),
mbIsClosed(false)
{}
ImplB2DPolygon(const ImplB2DPolygon& rToBeCopied)
: maPoints(rToBeCopied.maPoints),
- mpControlVector(),
- mpBufferedData(),
mbIsClosed(rToBeCopied.mbIsClosed)
{
// complete initialization using copy
@@ -620,8 +612,6 @@ public:
ImplB2DPolygon(const ImplB2DPolygon& rToBeCopied, sal_uInt32 nIndex, sal_uInt32 nCount)
: maPoints(rToBeCopied.maPoints, nIndex, nCount),
- mpControlVector(),
- mpBufferedData(),
mbIsClosed(rToBeCopied.mbIsClosed)
{
// complete initialization using partly copy
@@ -1130,7 +1120,6 @@ namespace basegfx
B2DPolygon::B2DPolygon() = default;
B2DPolygon::B2DPolygon(std::initializer_list<basegfx::B2DPoint> aPoints)
- : mpPolygon()
{
for (const basegfx::B2DPoint& rPoint : aPoints)
{
diff --git a/basegfx/source/polygon/b2dpolypolygon.cxx b/basegfx/source/polygon/b2dpolypolygon.cxx
index 36c221eeb106..78b3b7085303 100644
--- a/basegfx/source/polygon/b2dpolypolygon.cxx
+++ b/basegfx/source/polygon/b2dpolypolygon.cxx
@@ -30,20 +30,16 @@ class ImplB2DPolyPolygon
public:
ImplB2DPolyPolygon()
- : maPolygons(),
- mpSystemDependentDataHolder()
{
}
explicit ImplB2DPolyPolygon(const ImplB2DPolyPolygon& rSource)
- : maPolygons(rSource.maPolygons),
- mpSystemDependentDataHolder()
+ : maPolygons(rSource.maPolygons)
{
}
explicit ImplB2DPolyPolygon(const basegfx::B2DPolygon& rToBeCopied)
- : maPolygons(1,rToBeCopied),
- mpSystemDependentDataHolder()
+ : maPolygons(1,rToBeCopied)
{
}
diff --git a/basegfx/source/polygon/b2dtrapezoid.cxx b/basegfx/source/polygon/b2dtrapezoid.cxx
index 3a255c18a7a3..12dbd66fdf9e 100644
--- a/basegfx/source/polygon/b2dtrapezoid.cxx
+++ b/basegfx/source/polygon/b2dtrapezoid.cxx
@@ -482,9 +482,6 @@ namespace basegfx::trapezoidhelper
public:
explicit TrapezoidSubdivider(
const B2DPolyPolygon& rSourcePolyPolygon)
- : maTrDeEdgeEntries(),
- maPoints(),
- maNewPoints()
{
B2DPolyPolygon aSource(rSourcePolyPolygon);
TrDeSimpleEdges aTrDeSimpleEdges;
diff --git a/basegfx/source/polygon/b3dpolygon.cxx b/basegfx/source/polygon/b3dpolygon.cxx
index 89c9c279eb75..364f9f8c0e1d 100644
--- a/basegfx/source/polygon/b3dpolygon.cxx
+++ b/basegfx/source/polygon/b3dpolygon.cxx
@@ -37,7 +37,6 @@ class CoordinateData3D
public:
CoordinateData3D()
- : maPoint()
{
}
@@ -251,8 +250,7 @@ public:
}
BColorArray(const BColorArray& rOriginal, sal_uInt32 nIndex, sal_uInt32 nCount)
- : maVector(),
- mnUsedEntries(0)
+ : mnUsedEntries(0)
{
BColorDataVector::const_iterator aStart(rOriginal.maVector.begin());
aStart += nIndex;
@@ -393,8 +391,7 @@ public:
}
NormalsArray3D(const NormalsArray3D& rOriginal, sal_uInt32 nIndex, sal_uInt32 nCount)
- : maVector(),
- mnUsedEntries(0)
+ : mnUsedEntries(0)
{
NormalsData3DVector::const_iterator aStart(rOriginal.maVector.begin());
aStart += nIndex;
@@ -542,8 +539,7 @@ public:
}
TextureCoordinate2D(const TextureCoordinate2D& rOriginal, sal_uInt32 nIndex, sal_uInt32 nCount)
- : maVector(),
- mnUsedEntries(0)
+ : mnUsedEntries(0)
{
TextureData2DVector::const_iterator aStart(rOriginal.maVector.begin());
aStart += nIndex;
diff --git a/basegfx/source/polygon/b3dpolypolygon.cxx b/basegfx/source/polygon/b3dpolypolygon.cxx
index e391fc783848..97ed39c87718 100644
--- a/basegfx/source/polygon/b3dpolypolygon.cxx
+++ b/basegfx/source/polygon/b3dpolypolygon.cxx
@@ -31,7 +31,7 @@ class ImplB3DPolyPolygon
PolygonVector maPolygons;
public:
- ImplB3DPolyPolygon() : maPolygons()
+ ImplB3DPolyPolygon()
{
}