Kaydet (Commit) 44752e26 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:checkunusedparams in svgio

Change-Id: I2e05fc51715902737ead6e57d0fbe167d715b822
Reviewed-on: https://gerrit.libreoffice.org/37194Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 9fbd05e0
......@@ -43,7 +43,7 @@ namespace svgio
public:
SvgTextPositions();
void parseTextPositionAttributes(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent);
void parseTextPositionAttributes(SVGToken aSVGToken, const OUString& aContent);
/// X content
const SvgNumberVector& getX() const { return maX; }
......
......@@ -284,7 +284,7 @@ namespace svgio
public:
/// local attribute scanner
void parseStyleAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& rContent,
void parseStyleAttribute(SVGToken aSVGToken, const OUString& rContent,
bool bCaseIndependent);
/// helper which does the necessary with a given path
......
......@@ -49,7 +49,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -41,7 +41,7 @@ namespace svgio
{
}
void SvgTextPositions::parseTextPositionAttributes(const OUString& /*rTokenName*/, SVGToken aSVGToken, const OUString& aContent)
void SvgTextPositions::parseTextPositionAttributes(SVGToken aSVGToken, const OUString& aContent)
{
// parse own
switch(aSVGToken)
......
......@@ -52,7 +52,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -55,7 +55,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -53,7 +53,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -60,7 +60,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -78,7 +78,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -49,7 +49,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -70,7 +70,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -53,7 +53,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -56,7 +56,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -61,7 +61,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -52,7 +52,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -71,7 +71,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -55,7 +55,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -55,7 +55,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -232,7 +232,7 @@ namespace svgio
}
// valid token-value pair, parse it
parseStyleAttribute(aOUTokenName, StrToSVGToken(aOUTokenName, true), aOUTokenValue, true);
parseStyleAttribute(StrToSVGToken(aOUTokenName, true), aOUTokenValue, true);
}
}
......@@ -1272,7 +1272,6 @@ namespace svgio
}
void SvgStyleAttributes::parseStyleAttribute(
const OUString& /* rTokenName */,
SVGToken aSVGToken,
const OUString& aContent,
bool bCaseIndependent)
......
......@@ -120,7 +120,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -50,7 +50,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -55,10 +55,10 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// read text position attributes
maSvgTextPositions.parseTextPositionAttributes(rTokenName, aSVGToken, aContent);
maSvgTextPositions.parseTextPositionAttributes(aSVGToken, aContent);
// parse own
switch(aSVGToken)
......
......@@ -272,7 +272,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -48,7 +48,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
......@@ -48,10 +48,10 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// read text position attributes
maSvgTextPositions.parseTextPositionAttributes(rTokenName, aSVGToken, aContent);
maSvgTextPositions.parseTextPositionAttributes(aSVGToken, aContent);
// parse own
switch(aSVGToken)
......
......@@ -54,7 +54,7 @@ namespace svgio
SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
// read style attributes
maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent, false);
maSvgStyleAttributes.parseStyleAttribute(aSVGToken, aContent, false);
// parse own
switch(aSVGToken)
......
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