summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-27 10:34:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-27 10:16:08 +0000
commitc19d2b276b7a28c07315cf60cb0965098a935e5f (patch)
treecf3d2548bf3ed784b709bd74ec96eb071b167417 /svgio
parente641c1740f36ce11c9f178193f74a53ac7af8465 (diff)
loplugin:expandablemethods in stoc..svl
Change-Id: I7dd701ef07a14f70589b87154bfeeda7530b628f Reviewed-on: https://gerrit.libreoffice.org/30316 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/inc/svgstyleattributes.hxx3
-rw-r--r--svgio/source/svgreader/svgstyleattributes.cxx6
2 files changed, 3 insertions, 6 deletions
diff --git a/svgio/inc/svgstyleattributes.hxx b/svgio/inc/svgstyleattributes.hxx
index 360335ae6c79..2021204276ab 100644
--- a/svgio/inc/svgstyleattributes.hxx
+++ b/svgio/inc/svgstyleattributes.hxx
@@ -351,7 +351,6 @@ namespace svgio
/// StrokeDashOffset content
SvgNumber getStrokeDashOffset() const;
- void setStrokeDashOffset(const SvgNumber& rStrokeDashOffset) { maStrokeDashOffset = rStrokeDashOffset; }
/// StrokeLinecap content
StrokeLinecap getStrokeLinecap() const;
@@ -363,7 +362,6 @@ namespace svgio
/// StrokeMiterLimit content
SvgNumber getStrokeMiterLimit() const;
- void setStrokeMiterLimit(const SvgNumber& rStrokeMiterLimit) { maStrokeMiterLimit = rStrokeMiterLimit; }
/// StrokeOpacity content
SvgNumber getStrokeOpacity() const;
@@ -446,7 +444,6 @@ namespace svgio
// BaselineShift
void setBaselineShift(const BaselineShift aBaselineShift) { maBaselineShift = aBaselineShift; }
BaselineShift getBaselineShift() const { return maBaselineShift; }
- void setBaselineShiftNumber(const SvgNumber& rBaselineShift) { maBaselineShiftNumber = rBaselineShift; }
SvgNumber getBaselineShiftNumber() const;
};
} // end of namespace svgreader
diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx
index 6a92c42e73d9..948f361046b2 100644
--- a/svgio/source/svgreader/svgstyleattributes.cxx
+++ b/svgio/source/svgreader/svgstyleattributes.cxx
@@ -1397,7 +1397,7 @@ namespace svgio
{
if(aNum.isPositive())
{
- setStrokeDashOffset(aNum);
+ maStrokeDashOffset = aNum;
}
}
break;
@@ -1448,7 +1448,7 @@ namespace svgio
{
if(basegfx::fTools::moreOrEqual(aNum.getNumber(), 1.0))
{ //readSingleNumber sets Unit_px as default, if unit is missing. Correct it here.
- setStrokeMiterLimit(SvgNumber(aNum.getNumber(), Unit_none));
+ maStrokeMiterLimit = SvgNumber(aNum.getNumber(), Unit_none);
}
}
break;
@@ -1937,7 +1937,7 @@ namespace svgio
}
else if(readSingleNumber(aContent, aNum))
{
- setBaselineShiftNumber(aNum);
+ maBaselineShiftNumber = aNum;
if(Unit_percent == aNum.getUnit())
{