summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-11 12:35:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-12 08:49:53 +0200
commite1d3ecb498c9b28731392a6cb8557fe73fcfb5e9 (patch)
treead38427e73be092e7ee33c98e1c24874e3230a0e /svgio
parent97930797d2346ceaded866fd7c1dd4c3c9916015 (diff)
loplugin:simplifyconstruct in stoc..svl
Change-Id: I81d465d66a979e9a1e092e5d23ed339840d1fb2d Reviewed-on: https://gerrit.libreoffice.org/60315 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/source/svgreader/svganode.cxx3
-rw-r--r--svgio/source/svgreader/svgcirclenode.cxx3
-rw-r--r--svgio/source/svgreader/svgclippathnode.cxx1
-rw-r--r--svgio/source/svgreader/svgellipsenode.cxx3
-rw-r--r--svgio/source/svgreader/svggnode.cxx3
-rw-r--r--svgio/source/svgreader/svggradientnode.cxx1
-rw-r--r--svgio/source/svgreader/svgimagenode.cxx1
-rw-r--r--svgio/source/svgreader/svglinenode.cxx3
-rw-r--r--svgio/source/svgreader/svgmarkernode.cxx1
-rw-r--r--svgio/source/svgreader/svgmasknode.cxx1
-rw-r--r--svgio/source/svgreader/svgnode.cxx1
-rw-r--r--svgio/source/svgreader/svgpathnode.cxx2
-rw-r--r--svgio/source/svgreader/svgpatternnode.cxx4
-rw-r--r--svgio/source/svgreader/svgpolynode.cxx2
-rw-r--r--svgio/source/svgreader/svgrectnode.cxx3
-rw-r--r--svgio/source/svgreader/svgsvgnode.cxx1
-rw-r--r--svgio/source/svgreader/svgsymbolnode.cxx1
-rw-r--r--svgio/source/svgreader/svgtextnode.cxx1
-rw-r--r--svgio/source/svgreader/svgtextpathnode.cxx1
-rw-r--r--svgio/source/svgreader/svgusenode.cxx1
20 files changed, 6 insertions, 31 deletions
diff --git a/svgio/source/svgreader/svganode.cxx b/svgio/source/svgreader/svganode.cxx
index 46dd237ca637..8aac10dd1a3c 100644
--- a/svgio/source/svgreader/svganode.cxx
+++ b/svgio/source/svgreader/svganode.cxx
@@ -27,8 +27,7 @@ namespace svgio
SvgDocument& rDocument,
SvgNode* pParent)
: SvgNode(SVGTokenA, rDocument, pParent),
- maSvgStyleAttributes(*this),
- mpaTransform(nullptr)
+ maSvgStyleAttributes(*this)
{
}
diff --git a/svgio/source/svgreader/svgcirclenode.cxx b/svgio/source/svgreader/svgcirclenode.cxx
index 9bf150e55fa9..b2b6b4a07b99 100644
--- a/svgio/source/svgreader/svgcirclenode.cxx
+++ b/svgio/source/svgreader/svgcirclenode.cxx
@@ -32,8 +32,7 @@ namespace svgio
maSvgStyleAttributes(*this),
maCx(0),
maCy(0),
- maR(0),
- mpaTransform(nullptr)
+ maR(0)
{
}
diff --git a/svgio/source/svgreader/svgclippathnode.cxx b/svgio/source/svgreader/svgclippathnode.cxx
index 2986cbe64802..bda50ab3777f 100644
--- a/svgio/source/svgreader/svgclippathnode.cxx
+++ b/svgio/source/svgreader/svgclippathnode.cxx
@@ -35,7 +35,6 @@ namespace svgio
SvgNode* pParent)
: SvgNode(SVGTokenClipPathNode, rDocument, pParent),
maSvgStyleAttributes(*this),
- mpaTransform(nullptr),
maClipPathUnits(userSpaceOnUse)
{
}
diff --git a/svgio/source/svgreader/svgellipsenode.cxx b/svgio/source/svgreader/svgellipsenode.cxx
index d511d9c78ca1..c76b5c538c03 100644
--- a/svgio/source/svgreader/svgellipsenode.cxx
+++ b/svgio/source/svgreader/svgellipsenode.cxx
@@ -33,8 +33,7 @@ namespace svgio
maCx(0),
maCy(0),
maRx(0),
- maRy(0),
- mpaTransform(nullptr)
+ maRy(0)
{
}
diff --git a/svgio/source/svgreader/svggnode.cxx b/svgio/source/svgreader/svggnode.cxx
index d7e0ebcee5f2..c33bab1939c4 100644
--- a/svgio/source/svgreader/svggnode.cxx
+++ b/svgio/source/svgreader/svggnode.cxx
@@ -28,8 +28,7 @@ namespace svgio
SvgDocument& rDocument,
SvgNode* pParent)
: SvgNode(aType, rDocument, pParent),
- maSvgStyleAttributes(*this),
- mpaTransform(nullptr)
+ maSvgStyleAttributes(*this)
{
OSL_ENSURE(aType == SVGTokenDefs || aType == SVGTokenG, "SvgGNode should only be used for Group and Defs (!)");
}
diff --git a/svgio/source/svgreader/svggradientnode.cxx b/svgio/source/svgreader/svggradientnode.cxx
index efbfdccaadb5..5399ef35443a 100644
--- a/svgio/source/svgreader/svggradientnode.cxx
+++ b/svgio/source/svgreader/svggradientnode.cxx
@@ -50,7 +50,6 @@ namespace svgio
maFy(),
maGradientUnits(objectBoundingBox),
maSpreadMethod(drawinglayer::primitive2d::SpreadMethod::Pad),
- mpaGradientTransform(nullptr),
mbResolvingLink(false),
maXLink(),
mpXLink(nullptr)
diff --git a/svgio/source/svgreader/svgimagenode.cxx b/svgio/source/svgreader/svgimagenode.cxx
index 08976cc2e4be..b8fe34941005 100644
--- a/svgio/source/svgreader/svgimagenode.cxx
+++ b/svgio/source/svgreader/svgimagenode.cxx
@@ -45,7 +45,6 @@ namespace svgio
: SvgNode(SVGTokenRect, rDocument, pParent),
maSvgStyleAttributes(*this),
maSvgAspectRatio(),
- mpaTransform(nullptr),
maX(0),
maY(0),
maWidth(0),
diff --git a/svgio/source/svgreader/svglinenode.cxx b/svgio/source/svgreader/svglinenode.cxx
index 11e2ea021953..bce24f675334 100644
--- a/svgio/source/svgreader/svglinenode.cxx
+++ b/svgio/source/svgreader/svglinenode.cxx
@@ -33,8 +33,7 @@ namespace svgio
maX1(0),
maY1(0),
maX2(0),
- maY2(0),
- mpaTransform(nullptr)
+ maY2(0)
{
}
diff --git a/svgio/source/svgreader/svgmarkernode.cxx b/svgio/source/svgreader/svgmarkernode.cxx
index c4657984403c..2e33fa640c50 100644
--- a/svgio/source/svgreader/svgmarkernode.cxx
+++ b/svgio/source/svgreader/svgmarkernode.cxx
@@ -29,7 +29,6 @@ namespace svgio
: SvgNode(SVGTokenMarker, rDocument, pParent),
aPrimitives(),
maSvgStyleAttributes(*this),
- mpViewBox(nullptr),
maSvgAspectRatio(),
maRefX(0),
maRefY(0),
diff --git a/svgio/source/svgreader/svgmasknode.cxx b/svgio/source/svgreader/svgmasknode.cxx
index 872c7e6aa1a9..85d9b7f2e4b5 100644
--- a/svgio/source/svgreader/svgmasknode.cxx
+++ b/svgio/source/svgreader/svgmasknode.cxx
@@ -40,7 +40,6 @@ namespace svgio
maY(SvgNumber(-10.0, Unit_percent, true)),
maWidth(SvgNumber(120.0, Unit_percent, true)),
maHeight(SvgNumber(120.0, Unit_percent, true)),
- mpaTransform(nullptr),
maMaskUnits(objectBoundingBox),
maMaskContentUnits(userSpaceOnUse)
{
diff --git a/svgio/source/svgreader/svgnode.cxx b/svgio/source/svgreader/svgnode.cxx
index 56389ef14124..fb7ab0728488 100644
--- a/svgio/source/svgreader/svgnode.cxx
+++ b/svgio/source/svgreader/svgnode.cxx
@@ -266,7 +266,6 @@ namespace svgio
maXmlSpace(XmlSpace_notset),
maDisplay(Display_inline),
maCssStyleVector(),
- mpLocalCssStyle(nullptr),
mbDecomposing(false),
mbCssStyleVectorBuilt(false)
{
diff --git a/svgio/source/svgreader/svgpathnode.cxx b/svgio/source/svgreader/svgpathnode.cxx
index 051f4fb9972b..9bb6cd6b82f1 100644
--- a/svgio/source/svgreader/svgpathnode.cxx
+++ b/svgio/source/svgreader/svgpathnode.cxx
@@ -29,8 +29,6 @@ namespace svgio
SvgNode* pParent)
: SvgNode(SVGTokenPath, rDocument, pParent),
maSvgStyleAttributes(*this),
- mpPolyPolygon(nullptr),
- mpaTransform(nullptr),
maPathLength()
{
}
diff --git a/svgio/source/svgreader/svgpatternnode.cxx b/svgio/source/svgreader/svgpatternnode.cxx
index 5b3d2d726abe..0096f7ae5772 100644
--- a/svgio/source/svgreader/svgpatternnode.cxx
+++ b/svgio/source/svgreader/svgpatternnode.cxx
@@ -38,15 +38,11 @@ namespace svgio
: SvgNode(SVGTokenPattern, rDocument, pParent),
aPrimitives(),
maSvgStyleAttributes(*this),
- mpViewBox(nullptr),
maSvgAspectRatio(),
maX(),
maY(),
maWidth(),
maHeight(),
- mpPatternUnits(nullptr),
- mpPatternContentUnits(nullptr),
- mpaPatternTransform(nullptr),
mbResolvingLink(false),
maXLink(),
mpXLink(nullptr)
diff --git a/svgio/source/svgreader/svgpolynode.cxx b/svgio/source/svgreader/svgpolynode.cxx
index 14792a838678..adb37e69b7a2 100644
--- a/svgio/source/svgreader/svgpolynode.cxx
+++ b/svgio/source/svgreader/svgpolynode.cxx
@@ -32,8 +32,6 @@ namespace svgio
bool bIsPolyline)
: SvgNode(SVGTokenPolygon, rDocument, pParent),
maSvgStyleAttributes(*this),
- mpPolygon(nullptr),
- mpaTransform(nullptr),
mbIsPolyline(bIsPolyline)
{
}
diff --git a/svgio/source/svgreader/svgrectnode.cxx b/svgio/source/svgreader/svgrectnode.cxx
index e40f925f01db..c0ff40925f2d 100644
--- a/svgio/source/svgreader/svgrectnode.cxx
+++ b/svgio/source/svgreader/svgrectnode.cxx
@@ -35,8 +35,7 @@ namespace svgio
maWidth(0),
maHeight(0),
maRx(0),
- maRy(0),
- mpaTransform(nullptr)
+ maRy(0)
{
}
diff --git a/svgio/source/svgreader/svgsvgnode.cxx b/svgio/source/svgreader/svgsvgnode.cxx
index ee8e81ee7dab..c588b2c37038 100644
--- a/svgio/source/svgreader/svgsvgnode.cxx
+++ b/svgio/source/svgreader/svgsvgnode.cxx
@@ -37,7 +37,6 @@ namespace svgio
SvgNode* pParent)
: SvgNode(SVGTokenSvg, rDocument, pParent),
maSvgStyleAttributes(*this),
- mpViewBox(nullptr),
maSvgAspectRatio(),
maX(),
maY(),
diff --git a/svgio/source/svgreader/svgsymbolnode.cxx b/svgio/source/svgreader/svgsymbolnode.cxx
index a45f38e37649..632067e8f954 100644
--- a/svgio/source/svgreader/svgsymbolnode.cxx
+++ b/svgio/source/svgreader/svgsymbolnode.cxx
@@ -30,7 +30,6 @@ namespace svgio
SvgNode* pParent)
: SvgNode(SVGTokenSvg, rDocument, pParent),
maSvgStyleAttributes(*this),
- mpViewBox(nullptr),
maSvgAspectRatio()
{
}
diff --git a/svgio/source/svgreader/svgtextnode.cxx b/svgio/source/svgreader/svgtextnode.cxx
index 3cb5ea9fce38..58e9621420df 100644
--- a/svgio/source/svgreader/svgtextnode.cxx
+++ b/svgio/source/svgreader/svgtextnode.cxx
@@ -35,7 +35,6 @@ namespace svgio
SvgNode* pParent)
: SvgNode(SVGTokenText, rDocument, pParent),
maSvgStyleAttributes(*this),
- mpaTransform(nullptr),
maSvgTextPositions()
{
}
diff --git a/svgio/source/svgreader/svgtextpathnode.cxx b/svgio/source/svgreader/svgtextpathnode.cxx
index 288782cfbcff..6644996ee101 100644
--- a/svgio/source/svgreader/svgtextpathnode.cxx
+++ b/svgio/source/svgreader/svgtextpathnode.cxx
@@ -120,7 +120,6 @@ namespace svgio
mnMaxIndex(rPolygon.isClosed() ? rPolygon.count() : rPolygon.count() - 1),
mnIndex(0),
maCurrentSegment(),
- mpB2DCubicBezierHelper(nullptr),
mfCurrentSegmentLength(0.0),
mfSegmentStartPosition(0.0)
{
diff --git a/svgio/source/svgreader/svgusenode.cxx b/svgio/source/svgreader/svgusenode.cxx
index 86692d91c3d7..5904a143068a 100644
--- a/svgio/source/svgreader/svgusenode.cxx
+++ b/svgio/source/svgreader/svgusenode.cxx
@@ -30,7 +30,6 @@ namespace svgio
SvgNode* pParent)
: SvgNode(SVGTokenG, rDocument, pParent),
maSvgStyleAttributes(*this),
- mpaTransform(nullptr),
maX(),
maY(),
maWidth(),