diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-02 09:16:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-02 13:05:05 +0200 |
commit | b1af7083b469eec48783b7a1aaff6d080901fc7f (patch) | |
tree | 5d81585ed67232a1884ffc7146a2401c3c965c19 /svgio | |
parent | a8638dc41540e00c341a82c83e5a11fae5f74c20 (diff) |
clang-tidy:readability-redundant-member-init
Change-Id: I39b9ac81d65f4a269293824642c1b2ec593c0584
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121490
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio')
20 files changed, 11 insertions, 92 deletions
diff --git a/svgio/source/svgreader/svgcharacternode.cxx b/svgio/source/svgreader/svgcharacternode.cxx index eb7037d17f2c..d561a447384f 100644 --- a/svgio/source/svgreader/svgcharacternode.cxx +++ b/svgio/source/svgreader/svgcharacternode.cxx @@ -28,13 +28,7 @@ namespace svgio::svgreader { SvgTextPositions::SvgTextPositions() - : maX(), - maY(), - maDx(), - maDy(), - maRotate(), - maTextLength(), - mbLengthAdjust(true) + : mbLengthAdjust(true) { } @@ -563,11 +557,8 @@ namespace svgio::svgreader const InfoProvider& rInfoProvider, const SvgTextPositions& rSvgTextPositions) : mpParent(pParent), - maX(), // computed below - maY(), // computed below maRotate(solveSvgNumberVector(rSvgTextPositions.getRotate(), rInfoProvider)), mfTextLength(0.0), - maPosition(), // computed below mnRotationIndex(0), mbLengthAdjust(rSvgTextPositions.getLengthAdjust()), mbAbsoluteX(false) diff --git a/svgio/source/svgreader/svgdocument.cxx b/svgio/source/svgreader/svgdocument.cxx index 458f4d1ceff9..2b1d534ffd72 100644 --- a/svgio/source/svgreader/svgdocument.cxx +++ b/svgio/source/svgreader/svgdocument.cxx @@ -22,10 +22,7 @@ namespace svgio::svgreader { SvgDocument::SvgDocument(const OUString& rAbsolutePath) - : maNodes(), - maAbsolutePath(rAbsolutePath), - maIdTokenMapperList(), - maIdStyleTokenMapperList() + : maAbsolutePath(rAbsolutePath) { } diff --git a/svgio/source/svgreader/svgdocumenthandler.cxx b/svgio/source/svgreader/svgdocumenthandler.cxx index ccc0bc306c8b..fa620831aa4c 100644 --- a/svgio/source/svgreader/svgdocumenthandler.cxx +++ b/svgio/source/svgreader/svgdocumenthandler.cxx @@ -136,7 +136,6 @@ namespace SvgDocHdl::SvgDocHdl(const OUString& aAbsolutePath) : maDocument(aAbsolutePath), mpTarget(nullptr), - maCssContents(), bSkip(false) { } diff --git a/svgio/source/svgreader/svggradientnode.cxx b/svgio/source/svgreader/svggradientnode.cxx index 0b2ad5cabaf4..6520c4066b81 100644 --- a/svgio/source/svgreader/svggradientnode.cxx +++ b/svgio/source/svgreader/svggradientnode.cxx @@ -37,19 +37,9 @@ namespace svgio::svgreader SvgNode* pParent) : SvgNode(aType, rDocument, pParent), maSvgStyleAttributes(*this), - maX1(), - maY1(), - maX2(), - maY2(), - maCx(), - maCy(), - maR(), - maFx(), - maFy(), maGradientUnits(SvgUnits::objectBoundingBox), maSpreadMethod(drawinglayer::primitive2d::SpreadMethod::Pad), mbResolvingLink(false), - maXLink(), mpXLink(nullptr) { OSL_ENSURE(aType == SVGToken::LinearGradient || aType == SVGToken::RadialGradient, "SvgGradientNode should only be used for Linear and Radial gradient (!)"); diff --git a/svgio/source/svgreader/svggradientstopnode.cxx b/svgio/source/svgreader/svggradientstopnode.cxx index 980333576e92..5c7c0542ab95 100644 --- a/svgio/source/svgreader/svggradientstopnode.cxx +++ b/svgio/source/svgreader/svggradientstopnode.cxx @@ -25,8 +25,7 @@ namespace svgio::svgreader SvgDocument& rDocument, SvgNode* pParent) : SvgNode(SVGToken::Stop, rDocument, pParent), - maSvgStyleAttributes(*this), - maOffset() + maSvgStyleAttributes(*this) { } diff --git a/svgio/source/svgreader/svgimagenode.cxx b/svgio/source/svgreader/svgimagenode.cxx index 445e78a2646c..2dba10c6631b 100644 --- a/svgio/source/svgreader/svgimagenode.cxx +++ b/svgio/source/svgreader/svgimagenode.cxx @@ -41,15 +41,10 @@ namespace svgio::svgreader SvgNode* pParent) : SvgNode(SVGToken::Rect, rDocument, pParent), maSvgStyleAttributes(*this), - maSvgAspectRatio(), maX(0), maY(0), maWidth(0), - maHeight(0), - maXLink(), - maUrl(), - maMimeType(), - maData() + maHeight(0) { } diff --git a/svgio/source/svgreader/svgmarkernode.cxx b/svgio/source/svgreader/svgmarkernode.cxx index b16d03dd004d..0c930685c7f9 100644 --- a/svgio/source/svgreader/svgmarkernode.cxx +++ b/svgio/source/svgreader/svgmarkernode.cxx @@ -25,9 +25,7 @@ namespace svgio::svgreader SvgDocument& rDocument, SvgNode* pParent) : SvgNode(SVGToken::Marker, rDocument, pParent), - aPrimitives(), maSvgStyleAttributes(*this), - maSvgAspectRatio(), maRefX(0), maRefY(0), maMarkerUnits(MarkerUnits::strokeWidth), diff --git a/svgio/source/svgreader/svgnode.cxx b/svgio/source/svgreader/svgnode.cxx index 44c323920281..e940acbe6a07 100644 --- a/svgio/source/svgreader/svgnode.cxx +++ b/svgio/source/svgreader/svgnode.cxx @@ -267,10 +267,8 @@ namespace svgio::svgreader mrDocument(rDocument), mpParent(pParent), mpAlternativeParent(nullptr), - maChildren(), maXmlSpace(XmlSpace::NotSet), maDisplay(Display::Inline), - maCssStyleVector(), mbDecomposing(false), mbCssStyleVectorBuilt(false) { diff --git a/svgio/source/svgreader/svgpathnode.cxx b/svgio/source/svgreader/svgpathnode.cxx index d32a92b6a8c5..f3637bcf410f 100644 --- a/svgio/source/svgreader/svgpathnode.cxx +++ b/svgio/source/svgreader/svgpathnode.cxx @@ -26,8 +26,7 @@ namespace svgio::svgreader SvgDocument& rDocument, SvgNode* pParent) : SvgNode(SVGToken::Path, rDocument, pParent), - maSvgStyleAttributes(*this), - maPathLength() + maSvgStyleAttributes(*this) { } diff --git a/svgio/source/svgreader/svgpatternnode.cxx b/svgio/source/svgreader/svgpatternnode.cxx index ff92896fa350..e0fa2214be0f 100644 --- a/svgio/source/svgreader/svgpatternnode.cxx +++ b/svgio/source/svgreader/svgpatternnode.cxx @@ -34,15 +34,8 @@ namespace svgio::svgreader SvgDocument& rDocument, SvgNode* pParent) : SvgNode(SVGToken::Pattern, rDocument, pParent), - aPrimitives(), maSvgStyleAttributes(*this), - maSvgAspectRatio(), - maX(), - maY(), - maWidth(), - maHeight(), mbResolvingLink(false), - maXLink(), mpXLink(nullptr) { } diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx index fc072882d864..df7efce88a85 100644 --- a/svgio/source/svgreader/svgstyleattributes.cxx +++ b/svgio/source/svgreader/svgstyleattributes.cxx @@ -1249,41 +1249,21 @@ namespace svgio::svgreader SvgStyleAttributes::SvgStyleAttributes(SvgNode& rOwner) : mrOwner(rOwner), mpCssStyleParent(nullptr), - maFill(), - maStroke(), maStopColor(basegfx::BColor(0.0, 0.0, 0.0), true), - maStrokeWidth(), - maStopOpacity(), - maFillOpacity(), - maStrokeDasharray(), - maStrokeDashOffset(), maStrokeLinecap(StrokeLinecap::notset), maStrokeLinejoin(StrokeLinejoin::notset), - maStrokeMiterLimit(), - maStrokeOpacity(), - maFontFamily(), maFontSize(), - maFontSizeNumber(), maFontStretch(FontStretch::notset), maFontStyle(FontStyle::notset), maFontWeight(FontWeight::notset), maTextAlign(TextAlign::notset), maTextDecoration(TextDecoration::notset), maTextAnchor(TextAnchor::notset), - maColor(), - maOpacity(), maVisibility(Visibility::notset), - maTitle(), - maDesc(), - maClipPathXLink(), mpClipPathXLink(nullptr), - maMaskXLink(), mpMaskXLink(nullptr), - maMarkerStartXLink(), mpMarkerStartXLink(nullptr), - maMarkerMidXLink(), mpMarkerMidXLink(nullptr), - maMarkerEndXLink(), mpMarkerEndXLink(nullptr), maFillRule(FillRule::notset), maClipRule(FillRule::nonzero), diff --git a/svgio/source/svgreader/svgstylenode.cxx b/svgio/source/svgreader/svgstylenode.cxx index d9a335fede12..5f31482e833e 100644 --- a/svgio/source/svgreader/svgstylenode.cxx +++ b/svgio/source/svgreader/svgstylenode.cxx @@ -27,7 +27,6 @@ namespace svgio::svgreader SvgDocument& rDocument, SvgNode* pParent) : SvgNode(SVGToken::Style, rDocument, pParent), - maSvgStyleAttributes(), mbTextCss(false) { } diff --git a/svgio/source/svgreader/svgsvgnode.cxx b/svgio/source/svgreader/svgsvgnode.cxx index 082b8f89a715..71246df49a05 100644 --- a/svgio/source/svgreader/svgsvgnode.cxx +++ b/svgio/source/svgreader/svgsvgnode.cxx @@ -35,12 +35,6 @@ namespace svgio::svgreader SvgNode* pParent) : SvgNode(SVGToken::Svg, rDocument, pParent), maSvgStyleAttributes(*this), - maSvgAspectRatio(), - maX(), - maY(), - maWidth(), - maHeight(), - maVersion(), mbStyleAttributesInitialized(false) // #i125258# { } diff --git a/svgio/source/svgreader/svgsymbolnode.cxx b/svgio/source/svgreader/svgsymbolnode.cxx index c7a61217d0f5..b505a7500dc0 100644 --- a/svgio/source/svgreader/svgsymbolnode.cxx +++ b/svgio/source/svgreader/svgsymbolnode.cxx @@ -25,8 +25,7 @@ namespace svgio::svgreader SvgDocument& rDocument, SvgNode* pParent) : SvgNode(SVGToken::Svg, rDocument, pParent), - maSvgStyleAttributes(*this), - maSvgAspectRatio() + maSvgStyleAttributes(*this) { } diff --git a/svgio/source/svgreader/svgtextnode.cxx b/svgio/source/svgreader/svgtextnode.cxx index 99d2cf0c6a10..bda316cae4a4 100644 --- a/svgio/source/svgreader/svgtextnode.cxx +++ b/svgio/source/svgreader/svgtextnode.cxx @@ -31,8 +31,7 @@ namespace svgio::svgreader SvgDocument& rDocument, SvgNode* pParent) : SvgNode(SVGToken::Text, rDocument, pParent), - maSvgStyleAttributes(*this), - maSvgTextPositions() + maSvgStyleAttributes(*this) { } diff --git a/svgio/source/svgreader/svgtextpathnode.cxx b/svgio/source/svgreader/svgtextpathnode.cxx index e04b8380735e..925bfc4d1944 100644 --- a/svgio/source/svgreader/svgtextpathnode.cxx +++ b/svgio/source/svgreader/svgtextpathnode.cxx @@ -120,7 +120,6 @@ namespace svgio::svgreader mrTextStart(rTextStart), mnMaxIndex(rPolygon.isClosed() ? rPolygon.count() : rPolygon.count() - 1), mnIndex(0), - maCurrentSegment(), mfCurrentSegmentLength(0.0), mfSegmentStartPosition(0.0) { @@ -242,9 +241,7 @@ namespace svgio::svgreader SvgDocument& rDocument, SvgNode* pParent) : SvgNode(SVGToken::TextPath, rDocument, pParent), - maSvgStyleAttributes(*this), - maXLink(), - maStartOffset() + maSvgStyleAttributes(*this) { } diff --git a/svgio/source/svgreader/svgtitledescnode.cxx b/svgio/source/svgreader/svgtitledescnode.cxx index b71b38fb716f..8498762cc611 100644 --- a/svgio/source/svgreader/svgtitledescnode.cxx +++ b/svgio/source/svgreader/svgtitledescnode.cxx @@ -27,8 +27,7 @@ namespace svgio::svgreader SVGToken aType, SvgDocument& rDocument, SvgNode* pParent) - : SvgNode(aType, rDocument, pParent), - maText() + : SvgNode(aType, rDocument, pParent) { OSL_ENSURE(aType == SVGToken::Title || aType == SVGToken::Desc, "SvgTitleDescNode should only be used for Title and Desc (!)"); } diff --git a/svgio/source/svgreader/svgtrefnode.cxx b/svgio/source/svgreader/svgtrefnode.cxx index 07198265346d..44b34a0cf3db 100644 --- a/svgio/source/svgreader/svgtrefnode.cxx +++ b/svgio/source/svgreader/svgtrefnode.cxx @@ -26,8 +26,7 @@ namespace svgio::svgreader SvgDocument& rDocument, SvgNode* pParent) : SvgNode(SVGToken::Tref, rDocument, pParent), - maSvgStyleAttributes(*this), - maXLink() + maSvgStyleAttributes(*this) { } diff --git a/svgio/source/svgreader/svgtspannode.cxx b/svgio/source/svgreader/svgtspannode.cxx index b709a24d667c..e751237289f2 100644 --- a/svgio/source/svgreader/svgtspannode.cxx +++ b/svgio/source/svgreader/svgtspannode.cxx @@ -25,8 +25,7 @@ namespace svgio::svgreader SvgDocument& rDocument, SvgNode* pParent) : SvgNode(SVGToken::Tspan, rDocument, pParent), - maSvgStyleAttributes(*this), - maSvgTextPositions() + maSvgStyleAttributes(*this) { } diff --git a/svgio/source/svgreader/svgusenode.cxx b/svgio/source/svgreader/svgusenode.cxx index 9e3630a2bebb..a5a2d5e8ad57 100644 --- a/svgio/source/svgreader/svgusenode.cxx +++ b/svgio/source/svgreader/svgusenode.cxx @@ -28,11 +28,6 @@ namespace svgio::svgreader SvgNode* pParent) : SvgNode(SVGToken::Use, rDocument, pParent), maSvgStyleAttributes(*this), - maX(), - maY(), - maWidth(), - maHeight(), - maXLink(), mbDecomposingSvgNode(false) { } |