From 65c69af584152a5f8f3d2f9752d9f051660b7755 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 20 Jul 2017 15:44:23 +0200 Subject: loplugin:constparams in svgio Change-Id: I35dd8b1373ce3c46a10b1da1ddc6dc3722ffa760 Reviewed-on: https://gerrit.libreoffice.org/40245 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svgio/source/svgreader/svgdocumenthandler.cxx | 2 +- svgio/source/svgreader/svgpatternnode.cxx | 2 +- svgio/source/svgreader/svgstyleattributes.cxx | 2 +- svgio/source/svgreader/svgtextnode.cxx | 2 +- svgio/source/svgreader/svgtools.cxx | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'svgio/source') diff --git a/svgio/source/svgreader/svgdocumenthandler.cxx b/svgio/source/svgreader/svgdocumenthandler.cxx index 4d7171e8fef8..208eb90c1634 100644 --- a/svgio/source/svgreader/svgdocumenthandler.cxx +++ b/svgio/source/svgreader/svgdocumenthandler.cxx @@ -50,7 +50,7 @@ using namespace com::sun::star; namespace { - svgio::svgreader::SvgCharacterNode* whiteSpaceHandling(svgio::svgreader::SvgNode* pNode, svgio::svgreader::SvgCharacterNode* pLast) + svgio::svgreader::SvgCharacterNode* whiteSpaceHandling(svgio::svgreader::SvgNode const * pNode, svgio::svgreader::SvgCharacterNode* pLast) { if(pNode) { diff --git a/svgio/source/svgreader/svgpatternnode.cxx b/svgio/source/svgreader/svgpatternnode.cxx index 6fddc16af0c2..50e2a38b6fe8 100644 --- a/svgio/source/svgreader/svgpatternnode.cxx +++ b/svgio/source/svgreader/svgpatternnode.cxx @@ -198,7 +198,7 @@ namespace svgio } } - void SvgPatternNode::getValuesRelative(double& rfX, double& rfY, double& rfW, double& rfH, const basegfx::B2DRange& rGeoRange, SvgNode& rUser) const + void SvgPatternNode::getValuesRelative(double& rfX, double& rfY, double& rfW, double& rfH, const basegfx::B2DRange& rGeoRange, SvgNode const & rUser) const { double fTargetWidth(rGeoRange.getWidth()); double fTargetHeight(rGeoRange.getHeight()); diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx index 19e2bfd9bb91..7d61bd027caa 100644 --- a/svgio/source/svgreader/svgstyleattributes.cxx +++ b/svgio/source/svgreader/svgstyleattributes.cxx @@ -253,7 +253,7 @@ namespace svgio void SvgStyleAttributes::add_text( drawinglayer::primitive2d::Primitive2DContainer& rTarget, - drawinglayer::primitive2d::Primitive2DContainer& rSource) const + drawinglayer::primitive2d::Primitive2DContainer const & rSource) const { if(!rSource.empty()) { diff --git a/svgio/source/svgreader/svgtextnode.cxx b/svgio/source/svgreader/svgtextnode.cxx index 16c9d4bf93ef..0760f2c184b5 100644 --- a/svgio/source/svgreader/svgtextnode.cxx +++ b/svgio/source/svgreader/svgtextnode.cxx @@ -88,7 +88,7 @@ namespace svgio void SvgTextNode::addTextPrimitives( const SvgNode& rCandidate, drawinglayer::primitive2d::Primitive2DContainer& rTarget, - drawinglayer::primitive2d::Primitive2DContainer& rSource) + drawinglayer::primitive2d::Primitive2DContainer const & rSource) { if(!rSource.empty()) { diff --git a/svgio/source/svgreader/svgtools.cxx b/svgio/source/svgreader/svgtools.cxx index cb85a7e635f0..21257cd6a0d8 100644 --- a/svgio/source/svgreader/svgtools.cxx +++ b/svgio/source/svgreader/svgtools.cxx @@ -956,7 +956,7 @@ namespace svgio return false; } - basegfx::B2DRange readViewBox(const OUString& rCandidate, InfoProvider& rInfoProvider) + basegfx::B2DRange readViewBox(const OUString& rCandidate, InfoProvider const & rInfoProvider) { const sal_Int32 nLen(rCandidate.getLength()); @@ -997,7 +997,7 @@ namespace svgio return basegfx::B2DRange(); } - basegfx::B2DHomMatrix readTransform(const OUString& rCandidate, InfoProvider& rInfoProvider) + basegfx::B2DHomMatrix readTransform(const OUString& rCandidate, InfoProvider const & rInfoProvider) { basegfx::B2DHomMatrix aMatrix; const sal_Int32 nLen(rCandidate.getLength()); -- cgit