[Libreoffice-commits] core.git: svgio/inc svgio/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Sun Aug 25 06:15:15 UTC 2019
svgio/inc/svggradientnode.hxx | 14 +++++++-------
svgio/inc/svgmarkernode.hxx | 2 +-
svgio/inc/svgnode.hxx | 2 +-
svgio/inc/svgpatternnode.hxx | 2 +-
svgio/inc/svgsvgnode.hxx | 2 +-
svgio/inc/svgtoken.hxx | 4 ++--
svgio/inc/svgtools.hxx | 2 +-
svgio/source/svgreader/svggradientnode.cxx | 14 +++++++-------
svgio/source/svgreader/svgmarkernode.cxx | 2 +-
svgio/source/svgreader/svgnode.cxx | 2 +-
svgio/source/svgreader/svgpatternnode.cxx | 2 +-
svgio/source/svgreader/svgsvgnode.cxx | 2 +-
svgio/source/svgreader/svgtoken.cxx | 4 ++--
13 files changed, 27 insertions(+), 27 deletions(-)
New commits:
commit b8db9688a4bdfbe272993ee9808c23d5d7dae879
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Sat Aug 24 20:33:21 2019 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sun Aug 25 08:14:02 2019 +0200
loplugin:returnconstval in svgio
Change-Id: Idb195e43303e22ddf36a4529dd9704725c4de0e5
Reviewed-on: https://gerrit.libreoffice.org/78061
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/svgio/inc/svggradientnode.hxx b/svgio/inc/svggradientnode.hxx
index 1542796b48fc..c55074f97a10 100644
--- a/svgio/inc/svggradientnode.hxx
+++ b/svgio/inc/svggradientnode.hxx
@@ -77,25 +77,25 @@ namespace svgio
void collectGradientEntries(drawinglayer::primitive2d::SvgGradientEntryVector& aVector) const;
/// x1 content
- const SvgNumber getX1() const;
+ SvgNumber getX1() const;
/// y1 content
- const SvgNumber getY1() const;
+ SvgNumber getY1() const;
/// x2 content
- const SvgNumber getX2() const;
+ SvgNumber getX2() const;
/// y2 content
- const SvgNumber getY2() const;
+ SvgNumber getY2() const;
/// Cx content
- const SvgNumber getCx() const;
+ SvgNumber getCx() const;
/// Cy content
- const SvgNumber getCy() const;
+ SvgNumber getCy() const;
/// R content
- const SvgNumber getR() const;
+ SvgNumber getR() const;
/// Fx content
const SvgNumber* getFx() const;
diff --git a/svgio/inc/svgmarkernode.hxx b/svgio/inc/svgmarkernode.hxx
index 61098a35b740..135dc3c4fea8 100644
--- a/svgio/inc/svgmarkernode.hxx
+++ b/svgio/inc/svgmarkernode.hxx
@@ -70,7 +70,7 @@ namespace svgio
const drawinglayer::primitive2d::Primitive2DContainer& getMarkerPrimitives() const;
/// InfoProvider support for % values
- virtual const basegfx::B2DRange getCurrentViewPort() const override;
+ virtual basegfx::B2DRange getCurrentViewPort() const override;
/// viewBox content
const basegfx::B2DRange* getViewBox() const { return mpViewBox.get(); }
diff --git a/svgio/inc/svgnode.hxx b/svgio/inc/svgnode.hxx
index 86a83e6afab6..697c8c312a38 100644
--- a/svgio/inc/svgnode.hxx
+++ b/svgio/inc/svgnode.hxx
@@ -160,7 +160,7 @@ namespace svgio
const std::vector< std::unique_ptr<SvgNode> > & getChildren() const { return maChildren; }
/// InfoProvider support for %, em and ex values
- virtual const basegfx::B2DRange getCurrentViewPort() const override;
+ virtual basegfx::B2DRange getCurrentViewPort() const override;
virtual double getCurrentFontSizeInherited() const override;
virtual double getCurrentXHeightInherited() const override;
diff --git a/svgio/inc/svgpatternnode.hxx b/svgio/inc/svgpatternnode.hxx
index 956c8da1812e..79dc7581c590 100644
--- a/svgio/inc/svgpatternnode.hxx
+++ b/svgio/inc/svgpatternnode.hxx
@@ -78,7 +78,7 @@ namespace svgio
const drawinglayer::primitive2d::Primitive2DContainer& getPatternPrimitives() const;
/// InfoProvider support for % values
- virtual const basegfx::B2DRange getCurrentViewPort() const override;
+ virtual basegfx::B2DRange getCurrentViewPort() const override;
/// viewBox content
const basegfx::B2DRange* getViewBox() const;
diff --git a/svgio/inc/svgsvgnode.hxx b/svgio/inc/svgsvgnode.hxx
index defb46f7c894..feb669fe7bc5 100644
--- a/svgio/inc/svgsvgnode.hxx
+++ b/svgio/inc/svgsvgnode.hxx
@@ -69,7 +69,7 @@ namespace svgio
// The returned 'CurrentViewPort' is the viewport as it is set by this svg element
// and as it is needed to resolve relative values in children
// The method does not check for invalid width and height
- virtual const basegfx::B2DRange getCurrentViewPort() const override;
+ virtual basegfx::B2DRange getCurrentViewPort() const override;
/// viewBox content
const basegfx::B2DRange* getViewBox() const { return mpViewBox.get(); }
diff --git a/svgio/inc/svgtoken.hxx b/svgio/inc/svgtoken.hxx
index ea03e8f3bb33..b03f28d2984e 100644
--- a/svgio/inc/svgtoken.hxx
+++ b/svgio/inc/svgtoken.hxx
@@ -184,8 +184,8 @@ namespace svgio
SVGToken StrToSVGToken(const OUString& rStr, bool bCaseIndependent);
- const OUString getStrTitle();
- const OUString getStrDesc();
+ OUString getStrTitle();
+ OUString getStrDesc();
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/inc/svgtools.hxx b/svgio/inc/svgtools.hxx
index 02c1225cfe68..a122e2d1b268 100644
--- a/svgio/inc/svgtools.hxx
+++ b/svgio/inc/svgtools.hxx
@@ -60,7 +60,7 @@ namespace svgio
{
public:
virtual ~InfoProvider() {}
- virtual const basegfx::B2DRange getCurrentViewPort() const = 0;
+ virtual basegfx::B2DRange getCurrentViewPort() const = 0;
/// return font size of node inherited from parents
virtual double getCurrentFontSizeInherited() const = 0;
/// return xheight of node inherited from parents
diff --git a/svgio/source/svgreader/svggradientnode.cxx b/svgio/source/svgreader/svggradientnode.cxx
index 5399ef35443a..0677544ba775 100644
--- a/svgio/source/svgreader/svggradientnode.cxx
+++ b/svgio/source/svgreader/svggradientnode.cxx
@@ -305,7 +305,7 @@ namespace svgio
}
}
- const SvgNumber SvgGradientNode::getX1() const
+ SvgNumber SvgGradientNode::getX1() const
{
if(maX1.isSet())
{
@@ -326,7 +326,7 @@ namespace svgio
return SvgNumber(0.0, Unit_percent);
}
- const SvgNumber SvgGradientNode::getY1() const
+ SvgNumber SvgGradientNode::getY1() const
{
if(maY1.isSet())
{
@@ -347,7 +347,7 @@ namespace svgio
return SvgNumber(0.0, Unit_percent);
}
- const SvgNumber SvgGradientNode::getX2() const
+ SvgNumber SvgGradientNode::getX2() const
{
if(maX2.isSet())
{
@@ -368,7 +368,7 @@ namespace svgio
return SvgNumber(100.0, Unit_percent);
}
- const SvgNumber SvgGradientNode::getY2() const
+ SvgNumber SvgGradientNode::getY2() const
{
if(maY2.isSet())
{
@@ -389,7 +389,7 @@ namespace svgio
return SvgNumber(0.0, Unit_percent);
}
- const SvgNumber SvgGradientNode::getCx() const
+ SvgNumber SvgGradientNode::getCx() const
{
if(maCx.isSet())
{
@@ -410,7 +410,7 @@ namespace svgio
return SvgNumber(50.0, Unit_percent);
}
- const SvgNumber SvgGradientNode::getCy() const
+ SvgNumber SvgGradientNode::getCy() const
{
if(maCy.isSet())
{
@@ -431,7 +431,7 @@ namespace svgio
return SvgNumber(50.0, Unit_percent);
}
- const SvgNumber SvgGradientNode::getR() const
+ SvgNumber SvgGradientNode::getR() const
{
if(maR.isSet())
{
diff --git a/svgio/source/svgreader/svgmarkernode.cxx b/svgio/source/svgreader/svgmarkernode.cxx
index 35ac4fff1662..943a71cc5f36 100644
--- a/svgio/source/svgreader/svgmarkernode.cxx
+++ b/svgio/source/svgreader/svgmarkernode.cxx
@@ -181,7 +181,7 @@ namespace svgio
return aPrimitives;
}
- const basegfx::B2DRange SvgMarkerNode::getCurrentViewPort() const
+ basegfx::B2DRange SvgMarkerNode::getCurrentViewPort() const
{
if(getViewBox())
{
diff --git a/svgio/source/svgreader/svgnode.cxx b/svgio/source/svgreader/svgnode.cxx
index cb30c3111131..4e38b5dc6135 100644
--- a/svgio/source/svgreader/svgnode.cxx
+++ b/svgio/source/svgreader/svgnode.cxx
@@ -580,7 +580,7 @@ namespace svgio
mbDecomposing = false;
}
- const basegfx::B2DRange SvgNode::getCurrentViewPort() const
+ basegfx::B2DRange SvgNode::getCurrentViewPort() const
{
if(getParent())
{
diff --git a/svgio/source/svgreader/svgpatternnode.cxx b/svgio/source/svgreader/svgpatternnode.cxx
index bb2317bc7d6f..d3ae1e609a9a 100644
--- a/svgio/source/svgreader/svgpatternnode.cxx
+++ b/svgio/source/svgreader/svgpatternnode.cxx
@@ -280,7 +280,7 @@ namespace svgio
return aPrimitives;
}
- const basegfx::B2DRange SvgPatternNode::getCurrentViewPort() const
+ basegfx::B2DRange SvgPatternNode::getCurrentViewPort() const
{
if(getViewBox())
{
diff --git a/svgio/source/svgreader/svgsvgnode.cxx b/svgio/source/svgreader/svgsvgnode.cxx
index f438da41ef0e..49256d6a393f 100644
--- a/svgio/source/svgreader/svgsvgnode.cxx
+++ b/svgio/source/svgreader/svgsvgnode.cxx
@@ -726,7 +726,7 @@ namespace svgio
rTarget.push_back(xHidden);
}
- const basegfx::B2DRange SvgSvgNode::getCurrentViewPort() const
+ basegfx::B2DRange SvgSvgNode::getCurrentViewPort() const
{
if(getViewBox())
{
diff --git a/svgio/source/svgreader/svgtoken.cxx b/svgio/source/svgreader/svgtoken.cxx
index 9e286c128d09..c4c743425380 100644
--- a/svgio/source/svgreader/svgtoken.cxx
+++ b/svgio/source/svgreader/svgtoken.cxx
@@ -353,12 +353,12 @@ namespace svgio
}
}
- const OUString getStrTitle()
+ OUString getStrTitle()
{
return aSVGStrTitle;
}
- const OUString getStrDesc()
+ OUString getStrDesc()
{
return aSVGStrDesc;
}
More information about the Libreoffice-commits
mailing list