Kaydet (Commit) 65c69af5 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constparams in svgio

Change-Id: I35dd8b1373ce3c46a10b1da1ddc6dc3722ffa760
Reviewed-on: https://gerrit.libreoffice.org/40245Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst a1dae160
......@@ -69,7 +69,7 @@ namespace svgio
virtual void parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent) override;
/// global helpers
void getValuesRelative(double& rfX, double& rfY, double& rfW, double& rfH, const basegfx::B2DRange& rGeoRange, SvgNode& rUser) const;
void getValuesRelative(double& rfX, double& rfY, double& rfW, double& rfH, const basegfx::B2DRange& rGeoRange, SvgNode const & rUser) const;
/// get pattern primitives buffered, uses decomposeSvgNode internally
const drawinglayer::primitive2d::Primitive2DContainer& getPatternPrimitives() const;
......
......@@ -289,7 +289,7 @@ namespace svgio
/// helper which does the necessary with a given path
void add_text(
drawinglayer::primitive2d::Primitive2DContainer& rTarget,
drawinglayer::primitive2d::Primitive2DContainer& rSource) const;
drawinglayer::primitive2d::Primitive2DContainer const & rSource) const;
void add_path(
const basegfx::B2DPolyPolygon& rPath,
drawinglayer::primitive2d::Primitive2DContainer& rTarget,
......
......@@ -48,7 +48,7 @@ namespace svgio
static void addTextPrimitives(
const SvgNode& rCandidate,
drawinglayer::primitive2d::Primitive2DContainer& rTarget,
drawinglayer::primitive2d::Primitive2DContainer& rSource);
drawinglayer::primitive2d::Primitive2DContainer const & rSource);
public:
SvgTextNode(
......
......@@ -194,8 +194,8 @@ namespace svgio
sal_Int32 read_hex(sal_Unicode aChar);
bool match_colorKeyword(basegfx::BColor& rColor, const OUString& rName, bool bCaseIndependent);
bool read_color(const OUString& rCandidate, basegfx::BColor& rColor, bool bCaseIndependent, SvgNumber& rOpacity);
basegfx::B2DRange readViewBox(const OUString& rCandidate, InfoProvider& rInfoProvider);
basegfx::B2DHomMatrix readTransform(const OUString& rCandidate, InfoProvider& rInfoProvider);
basegfx::B2DRange readViewBox(const OUString& rCandidate, InfoProvider const & rInfoProvider);
basegfx::B2DHomMatrix readTransform(const OUString& rCandidate, InfoProvider const & rInfoProvider);
bool readSingleNumber(const OUString& rCandidate, SvgNumber& aNum);
bool readLocalUrl(const OUString& rCandidate, OUString& rURL);
bool readSvgPaint(const OUString& rCandidate, SvgPaint& rSvgPaint, OUString& rURL, bool bCaseIndependent, SvgNumber& rOpacity);
......
......@@ -36,7 +36,7 @@ using drawinglayer::primitive2d::Primitive2DContainer;
class Test : public test::BootstrapFixture, public XmlTestTools
{
void checkRectPrimitive(Primitive2DSequence& rPrimitive);
void checkRectPrimitive(Primitive2DSequence const & rPrimitive);
void testStyles();
void testTdf87309();
......@@ -113,7 +113,7 @@ Primitive2DSequence Test::parseSvg(const char* aSource)
return xSvgParser->getDecomposition(aInputStream, aPath);
}
void Test::checkRectPrimitive(Primitive2DSequence& rPrimitive)
void Test::checkRectPrimitive(Primitive2DSequence const & rPrimitive)
{
Primitive2dXmlDump dumper;
xmlDocPtr pDocument = dumper.dumpAndParse(comphelper::sequenceToContainer<Primitive2DContainer>(rPrimitive));
......
......@@ -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)
{
......
......@@ -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());
......
......@@ -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())
{
......
......@@ -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())
{
......
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment