summaryrefslogtreecommitdiff
path: root/svgio/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-03 10:53:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-03 12:16:38 +0200
commit77e9216ca1073caa0dcec23ef89808cc7f80fc06 (patch)
tree71ea2c3841f1a1017123dec44552239d74fd7a4a /svgio/source
parent81903d443116c643a9ff92d92c092812abc7f57d (diff)
loplugin:unusedfields
and filter out the weld fields, since we're not touching them yet Change-Id: I3cc23c46d2650f13cb29c7d381687939d23e2882 Reviewed-on: https://gerrit.libreoffice.org/80104 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio/source')
-rw-r--r--svgio/source/svgreader/svgstyleattributes.cxx28
1 files changed, 4 insertions, 24 deletions
diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx
index 232202927a76..502fe6991dd3 100644
--- a/svgio/source/svgreader/svgstyleattributes.cxx
+++ b/svgio/source/svgreader/svgstyleattributes.cxx
@@ -1256,10 +1256,6 @@ namespace svgio
maStopColor(basegfx::BColor(0.0, 0.0, 0.0), true),
maStrokeWidth(),
maStopOpacity(),
- mpSvgGradientNodeFill(nullptr),
- mpSvgGradientNodeStroke(nullptr),
- mpSvgPatternNodeFill(nullptr),
- mpSvgPatternNodeStroke(nullptr),
maFillOpacity(),
maStrokeDasharray(),
maStrokeDashOffset(),
@@ -2095,11 +2091,7 @@ namespace svgio
const SvgGradientNode* SvgStyleAttributes::getSvgGradientNodeFill() const
{
- if(mpSvgGradientNodeFill)
- {
- return mpSvgGradientNodeFill;
- }
- else if (!maFill.isSet() && !mpSvgPatternNodeFill)
+ if (!maFill.isSet())
{
if (!maNodeFillURL.isEmpty())
{
@@ -2129,11 +2121,7 @@ namespace svgio
const SvgGradientNode* SvgStyleAttributes::getSvgGradientNodeStroke() const
{
- if(mpSvgGradientNodeStroke)
- {
- return mpSvgGradientNodeStroke;
- }
- else if (!maStroke.isSet() && !mpSvgPatternNodeStroke)
+ if (!maStroke.isSet())
{
if(!maNodeStrokeURL.isEmpty())
{
@@ -2164,11 +2152,7 @@ namespace svgio
const SvgPatternNode* SvgStyleAttributes::getSvgPatternNodeFill() const
{
- if(mpSvgPatternNodeFill)
- {
- return mpSvgPatternNodeFill;
- }
- else if (!maFill.isSet() && !mpSvgGradientNodeFill)
+ if (!maFill.isSet())
{
if (!maNodeFillURL.isEmpty())
{
@@ -2199,11 +2183,7 @@ namespace svgio
const SvgPatternNode* SvgStyleAttributes::getSvgPatternNodeStroke() const
{
- if(mpSvgPatternNodeStroke)
- {
- return mpSvgPatternNodeStroke;
- }
- else if (!maStroke.isSet() && !mpSvgGradientNodeStroke)
+ if (!maStroke.isSet())
{
if(!maNodeStrokeURL.isEmpty())
{