loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I987fa3f29cb578e44e4022b6c33ae21a0094bfd8
This commit is contained in:
@@ -44,7 +44,7 @@ namespace svgio
|
||||
|
||||
const SvgStyleAttributes* SvgCircleNode::getSvgStyleAttributes() const
|
||||
{
|
||||
return checkForCssStyle(OUString("circle"), maSvgStyleAttributes);
|
||||
return checkForCssStyle("circle", maSvgStyleAttributes);
|
||||
}
|
||||
|
||||
void SvgCircleNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
|
||||
|
@@ -45,7 +45,7 @@ namespace svgio
|
||||
|
||||
const SvgStyleAttributes* SvgEllipseNode::getSvgStyleAttributes() const
|
||||
{
|
||||
return checkForCssStyle(OUString("ellipse"), maSvgStyleAttributes);
|
||||
return checkForCssStyle("ellipse", maSvgStyleAttributes);
|
||||
}
|
||||
|
||||
void SvgEllipseNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
|
||||
|
@@ -51,7 +51,7 @@ namespace svgio
|
||||
else
|
||||
{
|
||||
// #i125258# for SVGTokenG take CssStyles into account
|
||||
return checkForCssStyle(OUString("g"), maSvgStyleAttributes);
|
||||
return checkForCssStyle("g", maSvgStyleAttributes);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -62,7 +62,7 @@ namespace svgio
|
||||
|
||||
const SvgStyleAttributes* SvgImageNode::getSvgStyleAttributes() const
|
||||
{
|
||||
return checkForCssStyle(OUString("image"), maSvgStyleAttributes);
|
||||
return checkForCssStyle("image", maSvgStyleAttributes);
|
||||
}
|
||||
|
||||
void SvgImageNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
|
||||
|
@@ -45,7 +45,7 @@ namespace svgio
|
||||
|
||||
const SvgStyleAttributes* SvgLineNode::getSvgStyleAttributes() const
|
||||
{
|
||||
return checkForCssStyle(OUString("line"), maSvgStyleAttributes);
|
||||
return checkForCssStyle("line", maSvgStyleAttributes);
|
||||
}
|
||||
|
||||
void SvgLineNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
|
||||
|
@@ -48,7 +48,7 @@ namespace svgio
|
||||
|
||||
const SvgStyleAttributes* SvgMarkerNode::getSvgStyleAttributes() const
|
||||
{
|
||||
return checkForCssStyle(OUString("marker"), maSvgStyleAttributes);
|
||||
return checkForCssStyle("marker", maSvgStyleAttributes);
|
||||
}
|
||||
|
||||
void SvgMarkerNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
|
||||
|
@@ -43,7 +43,7 @@ namespace svgio
|
||||
|
||||
const SvgStyleAttributes* SvgPathNode::getSvgStyleAttributes() const
|
||||
{
|
||||
return checkForCssStyle(OUString("path"), maSvgStyleAttributes);
|
||||
return checkForCssStyle("path", maSvgStyleAttributes);
|
||||
}
|
||||
|
||||
void SvgPathNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
|
||||
|
@@ -62,7 +62,7 @@ namespace svgio
|
||||
|
||||
const SvgStyleAttributes* SvgPatternNode::getSvgStyleAttributes() const
|
||||
{
|
||||
return checkForCssStyle(OUString("pattern"), maSvgStyleAttributes);
|
||||
return checkForCssStyle("pattern", maSvgStyleAttributes);
|
||||
}
|
||||
|
||||
void SvgPatternNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
|
||||
|
@@ -47,7 +47,7 @@ namespace svgio
|
||||
|
||||
const SvgStyleAttributes* SvgRectNode::getSvgStyleAttributes() const
|
||||
{
|
||||
return checkForCssStyle(OUString("rect"), maSvgStyleAttributes);
|
||||
return checkForCssStyle("rect", maSvgStyleAttributes);
|
||||
}
|
||||
|
||||
void SvgRectNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
|
||||
|
@@ -112,7 +112,7 @@ namespace svgio
|
||||
const SvgStyleAttributes* SvgSvgNode::getSvgStyleAttributes() const
|
||||
{
|
||||
// #i125258# svg node can have CssStyles, too, so check for it here
|
||||
return checkForCssStyle(OUString("svg"), maSvgStyleAttributes);
|
||||
return checkForCssStyle("svg", maSvgStyleAttributes);
|
||||
}
|
||||
|
||||
void SvgSvgNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
|
||||
|
@@ -47,7 +47,7 @@ namespace svgio
|
||||
|
||||
const SvgStyleAttributes* SvgTextNode::getSvgStyleAttributes() const
|
||||
{
|
||||
return checkForCssStyle(OUString("text"), maSvgStyleAttributes);
|
||||
return checkForCssStyle("text", maSvgStyleAttributes);
|
||||
}
|
||||
|
||||
void SvgTextNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
|
||||
|
@@ -228,7 +228,7 @@ namespace svgio
|
||||
if ( aViewPort.isEmpty() )
|
||||
{
|
||||
#ifdef DBG_UTIL
|
||||
myAssert(OUString("Design error, this case should have been handled in the caller"));
|
||||
myAssert("Design error, this case should have been handled in the caller");
|
||||
#endif
|
||||
// no viewPort, assume a normal page size (A4)
|
||||
aViewPort = basegfx::B2DRange(
|
||||
|
@@ -39,7 +39,7 @@ namespace svgio
|
||||
const SvgStyleAttributes* SvgTspanNode::getSvgStyleAttributes() const
|
||||
{
|
||||
// #i125293# Need to support CssStyles in tspan text sections
|
||||
return checkForCssStyle(OUString("tspan"), maSvgStyleAttributes);
|
||||
return checkForCssStyle("tspan", maSvgStyleAttributes);
|
||||
}
|
||||
|
||||
void SvgTspanNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
|
||||
|
@@ -46,7 +46,7 @@ namespace svgio
|
||||
|
||||
const SvgStyleAttributes* SvgUseNode::getSvgStyleAttributes() const
|
||||
{
|
||||
return checkForCssStyle(OUString("use"), maSvgStyleAttributes);
|
||||
return checkForCssStyle("use", maSvgStyleAttributes);
|
||||
}
|
||||
|
||||
void SvgUseNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
|
||||
|
Reference in New Issue
Block a user