summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-05 12:03:30 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-08-05 11:56:06 +0000
commita40278562557828634886924c82f58e215be9756 (patch)
treecab700911bbcfbf280d962cbcac433e2892a337b /svgio
parentb4e12269e813338afc895986fbc4f2703cedd016 (diff)
loplugin:countusersofdefaultparams in sfx2..svgio
Change-Id: Ia01f3a9aa21c88df5fe5242ad4a3c0acbe68fda0 Reviewed-on: https://gerrit.libreoffice.org/27903 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/inc/svganode.hxx2
-rw-r--r--svgio/inc/svgcharacternode.hxx2
-rw-r--r--svgio/inc/svgcirclenode.hxx8
-rw-r--r--svgio/inc/svgclippathnode.hxx2
-rw-r--r--svgio/inc/svgellipsenode.hxx10
-rw-r--r--svgio/inc/svggnode.hxx2
-rw-r--r--svgio/inc/svggradientnode.hxx20
-rw-r--r--svgio/inc/svggradientstopnode.hxx2
-rw-r--r--svgio/inc/svgimagenode.hxx12
-rw-r--r--svgio/inc/svglinenode.hxx10
-rw-r--r--svgio/inc/svgmarkernode.hxx14
-rw-r--r--svgio/inc/svgmasknode.hxx10
-rw-r--r--svgio/inc/svgnode.hxx8
-rw-r--r--svgio/inc/svgpathnode.hxx6
-rw-r--r--svgio/inc/svgpatternnode.hxx14
-rw-r--r--svgio/inc/svgpolynode.hxx4
-rw-r--r--svgio/inc/svgrectnode.hxx14
-rw-r--r--svgio/inc/svgstyleattributes.hxx44
-rw-r--r--svgio/inc/svgsvgnode.hxx14
-rw-r--r--svgio/inc/svgsymbolnode.hxx4
-rw-r--r--svgio/inc/svgtextnode.hxx2
-rw-r--r--svgio/inc/svgtextpathnode.hxx2
-rw-r--r--svgio/inc/svgusenode.hxx10
23 files changed, 108 insertions, 108 deletions
diff --git a/svgio/inc/svganode.hxx b/svgio/inc/svganode.hxx
index ac07032f7adf..20fd1b2960cc 100644
--- a/svgio/inc/svganode.hxx
+++ b/svgio/inc/svganode.hxx
@@ -48,7 +48,7 @@ namespace svgio
/// transform content
const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; }
- void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
+ void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svgcharacternode.hxx b/svgio/inc/svgcharacternode.hxx
index 1025617e5c27..c06299904ba9 100644
--- a/svgio/inc/svgcharacternode.hxx
+++ b/svgio/inc/svgcharacternode.hxx
@@ -68,7 +68,7 @@ namespace svgio
/// TextLength content
const SvgNumber& getTextLength() const { return maTextLength; }
- void setTextLength(const SvgNumber& rTextLength = SvgNumber()) { maTextLength = rTextLength; }
+ void setTextLength(const SvgNumber& rTextLength) { maTextLength = rTextLength; }
/// LengthAdjust content
bool getLengthAdjust() const { return mbLengthAdjust; }
diff --git a/svgio/inc/svgcirclenode.hxx b/svgio/inc/svgcirclenode.hxx
index 99f661dc53d4..f9e6011615b7 100644
--- a/svgio/inc/svgcirclenode.hxx
+++ b/svgio/inc/svgcirclenode.hxx
@@ -51,19 +51,19 @@ namespace svgio
/// Cx content, set if found in current context
const SvgNumber& getCx() const { return maCx; }
- void setCx(const SvgNumber& rCx = SvgNumber()) { maCx = rCx; }
+ void setCx(const SvgNumber& rCx) { maCx = rCx; }
/// Cy content, set if found in current context
const SvgNumber& getCy() const { return maCy; }
- void setCy(const SvgNumber& rCy = SvgNumber()) { maCy = rCy; }
+ void setCy(const SvgNumber& rCy) { maCy = rCy; }
/// R content, set if found in current context
const SvgNumber& getR() const { return maR; }
- void setR(const SvgNumber& rR = SvgNumber()) { maR = rR; }
+ void setR(const SvgNumber& rR) { maR = rR; }
/// transform content, set if found in current context
const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; }
- void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
+ void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svgclippathnode.hxx b/svgio/inc/svgclippathnode.hxx
index 9bd7504f8183..558d5bd36180 100644
--- a/svgio/inc/svgclippathnode.hxx
+++ b/svgio/inc/svgclippathnode.hxx
@@ -58,7 +58,7 @@ namespace svgio
/// transform content
const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; }
- void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
+ void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svgellipsenode.hxx b/svgio/inc/svgellipsenode.hxx
index 4e51cff871ec..52a7a84f867e 100644
--- a/svgio/inc/svgellipsenode.hxx
+++ b/svgio/inc/svgellipsenode.hxx
@@ -52,23 +52,23 @@ namespace svgio
/// Cx content, set if found in current context
const SvgNumber& getCx() const { return maCx; }
- void setCx(const SvgNumber& rCx = SvgNumber()) { maCx = rCx; }
+ void setCx(const SvgNumber& rCx) { maCx = rCx; }
/// Cy content, set if found in current context
const SvgNumber& getCy() const { return maCy; }
- void setCy(const SvgNumber& rCy = SvgNumber()) { maCy = rCy; }
+ void setCy(const SvgNumber& rCy) { maCy = rCy; }
/// Rx content, set if found in current context
const SvgNumber& getRx() const { return maRx; }
- void setRx(const SvgNumber& rRx = SvgNumber()) { maRx = rRx; }
+ void setRx(const SvgNumber& rRx) { maRx = rRx; }
/// Ry content, set if found in current context
const SvgNumber& getRy() const { return maRy; }
- void setRy(const SvgNumber& rRy = SvgNumber()) { maRy = rRy; }
+ void setRy(const SvgNumber& rRy) { maRy = rRy; }
/// transform content, set if found in current context
const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; }
- void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
+ void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svggnode.hxx b/svgio/inc/svggnode.hxx
index 9eb4e022d3d9..a97f48fb69ca 100644
--- a/svgio/inc/svggnode.hxx
+++ b/svgio/inc/svggnode.hxx
@@ -49,7 +49,7 @@ namespace svgio
/// transform content
const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; }
- void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
+ void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svggradientnode.hxx b/svgio/inc/svggradientnode.hxx
index 5e2bea70317b..b453f3b7f175 100644
--- a/svgio/inc/svggradientnode.hxx
+++ b/svgio/inc/svggradientnode.hxx
@@ -76,39 +76,39 @@ namespace svgio
/// x1 content
const SvgNumber getX1() const;
- void setX1(const SvgNumber& rX1 = SvgNumber()) { maX1 = rX1; }
+ void setX1(const SvgNumber& rX1) { maX1 = rX1; }
/// y1 content
const SvgNumber getY1() const;
- void setY1(const SvgNumber& rY1 = SvgNumber()) { maY1 = rY1; }
+ void setY1(const SvgNumber& rY1) { maY1 = rY1; }
/// x2 content
const SvgNumber getX2() const;
- void setX2(const SvgNumber& rX2 = SvgNumber()) { maX2 = rX2; }
+ void setX2(const SvgNumber& rX2) { maX2 = rX2; }
/// y2 content
const SvgNumber getY2() const;
- void setY2(const SvgNumber& rY2 = SvgNumber()) { maY2 = rY2; }
+ void setY2(const SvgNumber& rY2) { maY2 = rY2; }
/// Cx content
const SvgNumber getCx() const;
- void setCx(const SvgNumber& rCx = SvgNumber()) { maCx = rCx; }
+ void setCx(const SvgNumber& rCx) { maCx = rCx; }
/// Cy content
const SvgNumber getCy() const;
- void setCy(const SvgNumber& rCy = SvgNumber()) { maCy = rCy; }
+ void setCy(const SvgNumber& rCy) { maCy = rCy; }
/// R content
const SvgNumber getR() const;
- void setR(const SvgNumber& rR = SvgNumber()) { maR = rR; }
+ void setR(const SvgNumber& rR) { maR = rR; }
/// Fx content
const SvgNumber* getFx() const;
- void setFx(const SvgNumber& rFx = SvgNumber()) { maFx = rFx; }
+ void setFx(const SvgNumber& rFx) { maFx = rFx; }
/// Fy content
const SvgNumber* getFy() const;
- void setFy(const SvgNumber& rFy = SvgNumber()) { maFy = rFy; }
+ void setFy(const SvgNumber& rFy) { maFy = rFy; }
/// gradientUnits content
SvgUnits getGradientUnits() const { return maGradientUnits; }
@@ -120,7 +120,7 @@ namespace svgio
/// transform content, set if found in current context
const basegfx::B2DHomMatrix* getGradientTransform() const;
- void setGradientTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr);
+ void setGradientTransform(const basegfx::B2DHomMatrix* pMatrix);
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svggradientstopnode.hxx b/svgio/inc/svggradientstopnode.hxx
index d25898e96c06..1804f10c3016 100644
--- a/svgio/inc/svggradientstopnode.hxx
+++ b/svgio/inc/svggradientstopnode.hxx
@@ -47,7 +47,7 @@ namespace svgio
/// offset content
const SvgNumber& getOffset() const { return maOffset; }
- void setOffset(const SvgNumber& rOffset = SvgNumber()) { maOffset = rOffset; }
+ void setOffset(const SvgNumber& rOffset) { maOffset = rOffset; }
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svgimagenode.hxx b/svgio/inc/svgimagenode.hxx
index f723d147ecf3..d4dbdcc209ab 100644
--- a/svgio/inc/svgimagenode.hxx
+++ b/svgio/inc/svgimagenode.hxx
@@ -59,27 +59,27 @@ namespace svgio
/// SvgAspectRatio content
const SvgAspectRatio& getSvgAspectRatio() const { return maSvgAspectRatio; }
- void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio = SvgAspectRatio()) { maSvgAspectRatio = rSvgAspectRatio; }
+ void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio) { maSvgAspectRatio = rSvgAspectRatio; }
/// transform content, set if found in current context
const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; }
- void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
+ void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
/// x content, set if found in current context
const SvgNumber& getX() const { return maX; }
- void setX(const SvgNumber& rX = SvgNumber()) { maX = rX; }
+ void setX(const SvgNumber& rX) { maX = rX; }
/// y content, set if found in current context
const SvgNumber& getY() const { return maY; }
- void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; }
+ void setY(const SvgNumber& rY) { maY = rY; }
/// width content, set if found in current context
const SvgNumber& getWidth() const { return maWidth; }
- void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; }
+ void setWidth(const SvgNumber& rWidth) { maWidth = rWidth; }
/// height content, set if found in current context
const SvgNumber& getHeight() const { return maHeight; }
- void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; }
+ void setHeight(const SvgNumber& rHeight) { maHeight = rHeight; }
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svglinenode.hxx b/svgio/inc/svglinenode.hxx
index 336c2cd4ca80..004e2410f6dd 100644
--- a/svgio/inc/svglinenode.hxx
+++ b/svgio/inc/svglinenode.hxx
@@ -52,23 +52,23 @@ namespace svgio
/// X1 content, set if found in current context
const SvgNumber& getX1() const { return maX1; }
- void setX1(const SvgNumber& rX1 = SvgNumber()) { maX1 = rX1; }
+ void setX1(const SvgNumber& rX1) { maX1 = rX1; }
/// Y1 content, set if found in current context
const SvgNumber& getY1() const { return maY1; }
- void setY1(const SvgNumber& rY1 = SvgNumber()) { maY1 = rY1; }
+ void setY1(const SvgNumber& rY1) { maY1 = rY1; }
/// X2 content, set if found in current context
const SvgNumber& getX2() const { return maX2; }
- void setX2(const SvgNumber& rX2 = SvgNumber()) { maX2 = rX2; }
+ void setX2(const SvgNumber& rX2) { maX2 = rX2; }
/// Y2 content, set if found in current context
const SvgNumber& getY2() const { return maY2; }
- void setY2(const SvgNumber& rY2 = SvgNumber()) { maY2 = rY2; }
+ void setY2(const SvgNumber& rY2) { maY2 = rY2; }
/// transform content, set if found in current context
const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; }
- void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
+ void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svgmarkernode.hxx b/svgio/inc/svgmarkernode.hxx
index aa61806f1a10..68cc68eedd52 100644
--- a/svgio/inc/svgmarkernode.hxx
+++ b/svgio/inc/svgmarkernode.hxx
@@ -73,19 +73,19 @@ namespace svgio
/// viewBox content
const basegfx::B2DRange* getViewBox() const { return mpViewBox; }
- void setViewBox(const basegfx::B2DRange* pViewBox = nullptr) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); }
+ void setViewBox(const basegfx::B2DRange* pViewBox) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); }
/// SvgAspectRatio content
const SvgAspectRatio& getSvgAspectRatio() const { return maSvgAspectRatio; }
- void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio = SvgAspectRatio()) { maSvgAspectRatio = rSvgAspectRatio; }
+ void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio) { maSvgAspectRatio = rSvgAspectRatio; }
/// RefX content, set if found in current context
const SvgNumber& getRefX() const { return maRefX; }
- void setRefX(const SvgNumber& rRefX = SvgNumber()) { maRefX = rRefX; }
+ void setRefX(const SvgNumber& rRefX) { maRefX = rRefX; }
/// RefY content, set if found in current context
const SvgNumber& getRefY() const { return maRefY; }
- void setRefY(const SvgNumber& rRefY = SvgNumber()) { maRefY = rRefY; }
+ void setRefY(const SvgNumber& rRefY) { maRefY = rRefY; }
/// MarkerUnits content
MarkerUnits getMarkerUnits() const { return maMarkerUnits; }
@@ -93,15 +93,15 @@ namespace svgio
/// MarkerWidth content, set if found in current context
const SvgNumber& getMarkerWidth() const { return maMarkerWidth; }
- void setMarkerWidth(const SvgNumber& rMarkerWidth = SvgNumber()) { maMarkerWidth = rMarkerWidth; }
+ void setMarkerWidth(const SvgNumber& rMarkerWidth) { maMarkerWidth = rMarkerWidth; }
/// MarkerHeight content, set if found in current context
const SvgNumber& getMarkerHeight() const { return maMarkerHeight; }
- void setMarkerHeight(const SvgNumber& rMarkerHeight = SvgNumber()) { maMarkerHeight = rMarkerHeight; }
+ void setMarkerHeight(const SvgNumber& rMarkerHeight) { maMarkerHeight = rMarkerHeight; }
/// Angle content, set if found in current context
double getAngle() const { return mfAngle; }
- void setAngle(double fAngle = 0.0) { mfAngle = fAngle; mbOrientAuto = false; }
+ void setAngle(double fAngle) { mfAngle = fAngle; mbOrientAuto = false; }
/// OrientAuto content, set if found in current context
bool getOrientAuto() const { return mbOrientAuto; }
diff --git a/svgio/inc/svgmasknode.hxx b/svgio/inc/svgmasknode.hxx
index 8e04fffc38f4..0545028ba254 100644
--- a/svgio/inc/svgmasknode.hxx
+++ b/svgio/inc/svgmasknode.hxx
@@ -59,23 +59,23 @@ namespace svgio
/// x content, set if found in current context
const SvgNumber& getX() const { return maX; }
- void setX(const SvgNumber& rX = SvgNumber()) { maX = rX; }
+ void setX(const SvgNumber& rX) { maX = rX; }
/// y content, set if found in current context
const SvgNumber& getY() const { return maY; }
- void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; }
+ void setY(const SvgNumber& rY) { maY = rY; }
/// width content, set if found in current context
const SvgNumber& getWidth() const { return maWidth; }
- void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; }
+ void setWidth(const SvgNumber& rWidth) { maWidth = rWidth; }
/// height content, set if found in current context
const SvgNumber& getHeight() const { return maHeight; }
- void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; }
+ void setHeight(const SvgNumber& rHeight) { maHeight = rHeight; }
/// transform content
const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; }
- void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
+ void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
/// MaskUnits content
SvgUnits getMaskUnits() const { return maMaskUnits; }
diff --git a/svgio/inc/svgnode.hxx b/svgio/inc/svgnode.hxx
index 9df8419ad6f4..65be1f391db4 100644
--- a/svgio/inc/svgnode.hxx
+++ b/svgio/inc/svgnode.hxx
@@ -165,19 +165,19 @@ namespace svgio
/// Id access
const OUString* getId() const { return mpId; }
- void setId(const OUString* pfId = nullptr);
+ void setId(const OUString* pfId);
/// Class access
const OUString* getClass() const { return mpClass; }
- void setClass(const OUString* pfClass = nullptr);
+ void setClass(const OUString* pfClass);
/// XmlSpace access
XmlSpace getXmlSpace() const;
- void setXmlSpace(XmlSpace eXmlSpace = XmlSpace_notset) { maXmlSpace = eXmlSpace; }
+ void setXmlSpace(XmlSpace eXmlSpace) { maXmlSpace = eXmlSpace; }
/// Display access #i121656#
Display getDisplay() const { return maDisplay; }
- void setDisplay(Display eDisplay = Display_inherit) { maDisplay = eDisplay; }
+ void setDisplay(Display eDisplay) { maDisplay = eDisplay; }
/// alternative parent
void setAlternativeParent(const SvgNode* pAlternativeParent = nullptr) { mpAlternativeParent = pAlternativeParent; }
diff --git a/svgio/inc/svgpathnode.hxx b/svgio/inc/svgpathnode.hxx
index 2cfa01ca21ab..daa5985cd9fa 100644
--- a/svgio/inc/svgpathnode.hxx
+++ b/svgio/inc/svgpathnode.hxx
@@ -52,15 +52,15 @@ namespace svgio
/// path content, set if found in current context
const basegfx::B2DPolyPolygon* getPath() const { return mpPolyPolygon; }
- void setPath(const basegfx::B2DPolyPolygon* pPath = nullptr) { if(mpPolyPolygon) delete mpPolyPolygon; mpPolyPolygon = nullptr; if(pPath) mpPolyPolygon = new basegfx::B2DPolyPolygon(*pPath); }
+ void setPath(const basegfx::B2DPolyPolygon* pPath) { if(mpPolyPolygon) delete mpPolyPolygon; mpPolyPolygon = nullptr; if(pPath) mpPolyPolygon = new basegfx::B2DPolyPolygon(*pPath); }
/// transform content, set if found in current context
const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; }
- void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
+ void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
/// PathLength content
const SvgNumber& getPathLength() const { return maPathLength; }
- void setPathLength(const SvgNumber& rPathLength = SvgNumber()) { maPathLength = rPathLength; }
+ void setPathLength(const SvgNumber& rPathLength) { maPathLength = rPathLength; }
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svgpatternnode.hxx b/svgio/inc/svgpatternnode.hxx
index cf8165996b8c..3bb8acc055c8 100644
--- a/svgio/inc/svgpatternnode.hxx
+++ b/svgio/inc/svgpatternnode.hxx
@@ -76,27 +76,27 @@ namespace svgio
/// viewBox content
const basegfx::B2DRange* getViewBox() const;
- void setViewBox(const basegfx::B2DRange* pViewBox = nullptr) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); }
+ void setViewBox(const basegfx::B2DRange* pViewBox) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); }
/// SvgAspectRatio content
const SvgAspectRatio& getSvgAspectRatio() const;
- void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio = SvgAspectRatio()) { maSvgAspectRatio = rSvgAspectRatio; }
+ void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio) { maSvgAspectRatio = rSvgAspectRatio; }
/// X content, set if found in current context
const SvgNumber& getX() const;
- void setX(const SvgNumber& rX = SvgNumber()) { maX = rX; }
+ void setX(const SvgNumber& rX) { maX = rX; }
/// Y content, set if found in current context
const SvgNumber& getY() const;
- void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; }
+ void setY(const SvgNumber& rY) { maY = rY; }
/// Width content, set if found in current context
const SvgNumber& getWidth() const;
- void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; }
+ void setWidth(const SvgNumber& rWidth) { maWidth = rWidth; }
/// Height content, set if found in current context
const SvgNumber& getHeight() const;
- void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; }
+ void setHeight(const SvgNumber& rHeight) { maHeight = rHeight; }
/// PatternUnits content
const SvgUnits* getPatternUnits() const;
@@ -108,7 +108,7 @@ namespace svgio
/// PatternTransform content
const basegfx::B2DHomMatrix* getPatternTransform() const;
- void setPatternTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaPatternTransform) delete mpaPatternTransform; mpaPatternTransform = nullptr; if(pMatrix) mpaPatternTransform = new basegfx::B2DHomMatrix(*pMatrix); }
+ void setPatternTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaPatternTransform) delete mpaPatternTransform; mpaPatternTransform = nullptr; if(pMatrix) mpaPatternTransform = new basegfx::B2DHomMatrix(*pMatrix); }
};
} // end of namespace svgreader
diff --git a/svgio/inc/svgpolynode.hxx b/svgio/inc/svgpolynode.hxx
index 91340be62d46..6c9a605ee2fb 100644
--- a/svgio/inc/svgpolynode.hxx
+++ b/svgio/inc/svgpolynode.hxx
@@ -57,11 +57,11 @@ namespace svgio
/// Polygon content, set if found in current context
const basegfx::B2DPolygon* getPolygon() const { return mpPolygon; }
- void setPolygon(const basegfx::B2DPolygon* pPolygon = nullptr) { if(mpPolygon) delete mpPolygon; mpPolygon = nullptr; if(pPolygon) mpPolygon = new basegfx::B2DPolygon(*pPolygon); }
+ void setPolygon(const basegfx::B2DPolygon* pPolygon) { if(mpPolygon) delete mpPolygon; mpPolygon = nullptr; if(pPolygon) mpPolygon = new basegfx::B2DPolygon(*pPolygon); }
/// transform content, set if found in current context
const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; }
- void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
+ void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svgrectnode.hxx b/svgio/inc/svgrectnode.hxx
index a16f36949b73..8eadc61c3a3d 100644
--- a/svgio/inc/svgrectnode.hxx
+++ b/svgio/inc/svgrectnode.hxx
@@ -54,31 +54,31 @@ namespace svgio
/// x content, set if found in current context
const SvgNumber& getX() const { return maX; }
- void setX(const SvgNumber& rX = SvgNumber()) { maX = rX; }
+ void setX(const SvgNumber& rX) { maX = rX; }
/// y content, set if found in current context
const SvgNumber& getY() const { return maY; }
- void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; }
+ void setY(const SvgNumber& rY) { maY = rY; }
/// width content, set if found in current context
const SvgNumber& getWidth() const { return maWidth; }
- void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; }
+ void setWidth(const SvgNumber& rWidth) { maWidth = rWidth; }
/// height content, set if found in current context
const SvgNumber& getHeight() const { return maHeight; }
- void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; }
+ void setHeight(const SvgNumber& rHeight) { maHeight = rHeight; }
/// Rx content, set if found in current context
const SvgNumber& getRx() const { return maRx; }
- void setRx(const SvgNumber& rRx = SvgNumber()) { maRx = rRx; }
+ void setRx(const SvgNumber& rRx) { maRx = rRx; }
/// Ry content, set if found in current context
const SvgNumber& getRy() const { return maRy; }
- void setRy(const SvgNumber& rRy = SvgNumber()) { maRy = rRy; }
+ void setRy(const SvgNumber& rRy) { maRy = rRy; }
/// transform content, set if found in current context
const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; }
- void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
+ void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svgstyleattributes.hxx b/svgio/inc/svgstyleattributes.hxx
index ba8cb553c763..d0bc8cb6f526 100644
--- a/svgio/inc/svgstyleattributes.hxx
+++ b/svgio/inc/svgstyleattributes.hxx
@@ -327,11 +327,11 @@ namespace svgio
/// stroke-width content
SvgNumber getStrokeWidth() const;
- void setStrokeWidth(const SvgNumber& rStrokeWidth = SvgNumber()) { maStrokeWidth = rStrokeWidth; }
+ void setStrokeWidth(const SvgNumber& rStrokeWidth) { maStrokeWidth = rStrokeWidth; }
/// stop opacity content
SvgNumber getStopOpacity() const;
- void setStopOpacity(const SvgNumber& rStopOpacity = SvgNumber()) { maStopOpacity = rStopOpacity; }
+ void setStopOpacity(const SvgNumber& rStopOpacity) { maStopOpacity = rStopOpacity; }
/// access to evtl. set fill gradient
const SvgGradientNode* getSvgGradientNodeFill() const;
@@ -351,14 +351,14 @@ namespace svgio
/// fill opacity content
SvgNumber getFillOpacity() const;
- void setFillOpacity(const SvgNumber& rFillOpacity = SvgNumber()) { maFillOpacity = rFillOpacity; }
+ void setFillOpacity(const SvgNumber& rFillOpacity) { maFillOpacity = rFillOpacity; }
/// fill rule content
FillRule getFillRule() const;
/// fill StrokeDasharray content
const SvgNumberVector& getStrokeDasharray() const;
- void setStrokeDasharray(const SvgNumberVector& rStrokeDasharray = SvgNumberVector()) { maStrokeDasharray = rStrokeDasharray; }
+ void setStrokeDasharray(const SvgNumberVector& rStrokeDasharray) { maStrokeDasharray = rStrokeDasharray; }
/// #121221# StrokeDasharray needs a set state, it *may* be set to empty by purpose
bool getStrokeDasharraySet() const { return mbStrokeDasharraySet; }
@@ -366,60 +366,60 @@ namespace svgio
/// StrokeDashOffset content
SvgNumber getStrokeDashOffset() const;
- void setStrokeDashOffset(const SvgNumber& rStrokeDashOffset = SvgNumber()) { maStrokeDashOffset = rStrokeDashOffset; }
+ void setStrokeDashOffset(const SvgNumber& rStrokeDashOffset) { maStrokeDashOffset = rStrokeDashOffset; }
/// StrokeLinecap content
StrokeLinecap getStrokeLinecap() const;
- void setStrokeLinecap(const StrokeLinecap aStrokeLinecap = StrokeLinecap_notset) { maStrokeLinecap = aStrokeLinecap; }
+ void setStrokeLinecap(const StrokeLinecap aStrokeLinecap) { maStrokeLinecap = aStrokeLinecap; }
/// StrokeLinejoin content
StrokeLinejoin getStrokeLinejoin() const;
- void setStrokeLinejoin(const StrokeLinejoin aStrokeLinejoin = StrokeLinejoin_notset) { maStrokeLinejoin = aStrokeLinejoin; }
+ void setStrokeLinejoin(const StrokeLinejoin aStrokeLinejoin) { maStrokeLinejoin = aStrokeLinejoin; }
/// StrokeMiterLimit content
SvgNumber getStrokeMiterLimit() const;
- void setStrokeMiterLimit(const SvgNumber& rStrokeMiterLimit = SvgNumber(4.0,Unit_none,false)) { maStrokeMiterLimit = rStrokeMiterLimit; }
+ void setStrokeMiterLimit(const SvgNumber& rStrokeMiterLimit) { maStrokeMiterLimit = rStrokeMiterLimit; }
/// StrokeOpacity content
SvgNumber getStrokeOpacity() const;
- void setStrokeOpacity(const SvgNumber& rStrokeOpacity = SvgNumber()) { maStrokeOpacity = rStrokeOpacity; }
+ void setStrokeOpacity(const SvgNumber& rStrokeOpacity) { maStrokeOpacity = rStrokeOpacity; }
/// Font content
const SvgStringVector& getFontFamily() const;
- void setFontFamily(const SvgStringVector& rSvgStringVector = SvgStringVector()) { maFontFamily = rSvgStringVector; }
+ void setFontFamily(const SvgStringVector& rSvgStringVector) { maFontFamily = rSvgStringVector; }
/// FontSize content
- void setFontSize(const FontSize aFontSize = FontSize_notset) { maFontSize = aFontSize; }
- void setFontSizeNumber(const SvgNumber& rFontSize = SvgNumber()) { maFontSizeNumber = rFontSize; }
+ void setFontSize(const FontSize aFontSize) { maFontSize = aFontSize; }
+ void setFontSizeNumber(const SvgNumber& rFontSize) { maFontSizeNumber = rFontSize; }
SvgNumber getFontSizeNumber() const;
/// FontStretch content
FontStretch getFontStretch() const;
- void setFontStretch(const FontStretch aFontStretch = FontStretch_notset) { maFontStretch = aFontStretch; }
+ void setFontStretch(const FontStretch aFontStretch) { maFontStretch = aFontStretch; }
/// FontStyle content
FontStyle getFontStyle() const;
- void setFontStyle(const FontStyle aFontStyle = FontStyle_notset) { maFontStyle = aFontStyle; }
+ void setFontStyle(const FontStyle aFontStyle) { maFontStyle = aFontStyle; }
/// FontVariant content
- void setFontVariant(const FontVariant aFontVariant = FontVariant_notset) { maFontVariant = aFontVariant; }
+ void setFontVariant(const FontVariant aFontVariant) { maFontVariant = aFontVariant; }
/// FontWeight content
FontWeight getFontWeight() const;
- void setFontWeight(const FontWeight aFontWeight = FontWeight_notset) { maFontWeight = aFontWeight; }
+ void setFontWeight(const FontWeight aFontWeight) { maFontWeight = aFontWeight; }
/// TextAlign content
TextAlign getTextAlign() const;
- void setTextAlign(const TextAlign aTextAlign = TextAlign_notset) { maTextAlign = aTextAlign; }
+ void setTextAlign(const TextAlign aTextAlign) { maTextAlign = aTextAlign; }
/// TextDecoration content
const SvgStyleAttributes* getTextDecorationDefiningSvgStyleAttributes() const;
TextDecoration getTextDecoration() const;
- void setTextDecoration(const TextDecoration aTextDecoration = TextDecoration_notset) { maTextDecoration = aTextDecoration; }
+ void setTextDecoration(const TextDecoration aTextDecoration) { maTextDecoration = aTextDecoration; }
/// TextAnchor content
TextAnchor getTextAnchor() const;
- void setTextAnchor(const TextAnchor aTextAnchor = TextAnchor_notset) { maTextAnchor = aTextAnchor; }
+ void setTextAnchor(const TextAnchor aTextAnchor) { maTextAnchor = aTextAnchor; }
/// Color content
const basegfx::BColor* getColor() const;
@@ -430,11 +430,11 @@ namespace svgio
/// Opacity content
SvgNumber getOpacity() const;
- void setOpacity(const SvgNumber& rOpacity = SvgNumber()) { maOpacity = rOpacity; }
+ void setOpacity(const SvgNumber& rOpacity) { maOpacity = rOpacity; }
/// Visibility
Visibility getVisibility() const;
- void setVisibility(const Visibility aVisibility = Visibility_notset) { maVisibility = aVisibility; }
+ void setVisibility(const Visibility aVisibility) { maVisibility = aVisibility; }
// Title content
const OUString& getTitle() const { return maTitle; }
@@ -467,7 +467,7 @@ namespace svgio
// BaselineShift
void setBaselineShift(const BaselineShift aBaselineShift) { maBaselineShift = aBaselineShift; }
BaselineShift getBaselineShift() const { return maBaselineShift; }
- void setBaselineShiftNumber(const SvgNumber& rBaselineShift = SvgNumber()) { maBaselineShiftNumber = rBaselineShift; }
+ void setBaselineShiftNumber(const SvgNumber& rBaselineShift) { maBaselineShiftNumber = rBaselineShift; }
SvgNumber getBaselineShiftNumber() const;
};
} // end of namespace svgreader
diff --git a/svgio/inc/svgsvgnode.hxx b/svgio/inc/svgsvgnode.hxx
index a256971b8719..18b9a1f571f5 100644
--- a/svgio/inc/svgsvgnode.hxx
+++ b/svgio/inc/svgsvgnode.hxx
@@ -71,30 +71,30 @@ namespace svgio
/// viewBox content
const basegfx::B2DRange* getViewBox() const { return mpViewBox; }
- void setViewBox(const basegfx::B2DRange* pViewBox = nullptr) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); }
+ void setViewBox(const basegfx::B2DRange* pViewBox) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); }
/// SvgAspectRatio content
const SvgAspectRatio& getSvgAspectRatio() const { return maSvgAspectRatio; }
- void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio = SvgAspectRatio()) { maSvgAspectRatio = rSvgAspectRatio; }
+ void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio) { maSvgAspectRatio = rSvgAspectRatio; }
/// x content
const SvgNumber& getX() const { return maX; }
- void setX(const SvgNumber& rX = SvgNumber()) { maX = rX; }
+ void setX(const SvgNumber& rX) { maX = rX; }
/// y content
const SvgNumber& getY() const { return maY; }
- void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; }
+ void setY(const SvgNumber& rY) { maY = rY; }
/// width content
const SvgNumber& getWidth() const { return maWidth; }
- void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; }
+ void setWidth(const SvgNumber& rWidth) { maWidth = rWidth; }
/// height content
const SvgNumber& getHeight() const { return maHeight; }
- void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; }
+ void setHeight(const SvgNumber& rHeight) { maHeight = rHeight; }
/// version content
- void setVersion(const SvgNumber& rVersion = SvgNumber()) { maVersion = rVersion; }
+ void setVersion(const SvgNumber& rVersion) { maVersion = rVersion; }
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svgsymbolnode.hxx b/svgio/inc/svgsymbolnode.hxx
index 1ec961673ada..d3d28480b495 100644
--- a/svgio/inc/svgsymbolnode.hxx
+++ b/svgio/inc/svgsymbolnode.hxx
@@ -46,10 +46,10 @@ namespace svgio
virtual void parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent) override;
/// viewBox content
- void setViewBox(const basegfx::B2DRange* pViewBox = nullptr) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); }
+ void setViewBox(const basegfx::B2DRange* pViewBox) { if(mpViewBox) delete mpViewBox; mpViewBox = nullptr; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); }
/// SvgAspectRatio content
- void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio = SvgAspectRatio()) { maSvgAspectRatio = rSvgAspectRatio; }
+ void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio) { maSvgAspectRatio = rSvgAspectRatio; }
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svgtextnode.hxx b/svgio/inc/svgtextnode.hxx
index bea1fde1c328..cc679a7355e4 100644
--- a/svgio/inc/svgtextnode.hxx
+++ b/svgio/inc/svgtextnode.hxx
@@ -62,7 +62,7 @@ namespace svgio
/// transform content, set if found in current context
const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; }
- void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
+ void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
/// access to SvgTextPositions
const SvgTextPositions& getSvgTextPositions() const { return maSvgTextPositions; }
diff --git a/svgio/inc/svgtextpathnode.hxx b/svgio/inc/svgtextpathnode.hxx
index 33c0e0a87d03..2c974856d6a5 100644
--- a/svgio/inc/svgtextpathnode.hxx
+++ b/svgio/inc/svgtextpathnode.hxx
@@ -61,7 +61,7 @@ namespace svgio
/// StartOffset content
const SvgNumber& getStartOffset() const { return maStartOffset; }
- void setStartOffset(const SvgNumber& rStartOffset = SvgNumber()) { maStartOffset = rStartOffset; }
+ void setStartOffset(const SvgNumber& rStartOffset) { maStartOffset = rStartOffset; }
/// Method content
void setMethod(bool bNew) { mbMethod = bNew; }
diff --git a/svgio/inc/svgusenode.hxx b/svgio/inc/svgusenode.hxx
index 3807f6f121c2..3f5aba076ce2 100644
--- a/svgio/inc/svgusenode.hxx
+++ b/svgio/inc/svgusenode.hxx
@@ -56,21 +56,21 @@ namespace svgio
/// transform content
const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform; }
- void setTransform(const basegfx::B2DHomMatrix* pMatrix = nullptr) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
+ void setTransform(const basegfx::B2DHomMatrix* pMatrix) { if(mpaTransform) delete mpaTransform; mpaTransform = nullptr; if(pMatrix) mpaTransform = new basegfx::B2DHomMatrix(*pMatrix); }
/// x content
const SvgNumber& getX() const { return maX; }
- void setX(const SvgNumber& rX = SvgNumber()) { maX = rX; }
+ void setX(const SvgNumber& rX) { maX = rX; }
/// y content
const SvgNumber& getY() const { return maY; }
- void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; }
+ void setY(const SvgNumber& rY) { maY = rY; }
/// width content
- void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; }
+ void setWidth(const SvgNumber& rWidth) { maWidth = rWidth; }
/// height content
- void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; }
+ void setHeight(const SvgNumber& rHeight) { maHeight = rHeight; }
};
} // end of namespace svgreader
} // end of namespace svgio