Kaydet (Commit) c76b97d3 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)

Change-Id: I987fa3f29cb578e44e4022b6c33ae21a0094bfd8
üst 6cc82cdd
...@@ -44,7 +44,7 @@ namespace svgio ...@@ -44,7 +44,7 @@ namespace svgio
const SvgStyleAttributes* SvgCircleNode::getSvgStyleAttributes() const 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) void SvgCircleNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
......
...@@ -45,7 +45,7 @@ namespace svgio ...@@ -45,7 +45,7 @@ namespace svgio
const SvgStyleAttributes* SvgEllipseNode::getSvgStyleAttributes() const 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) void SvgEllipseNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
......
...@@ -51,7 +51,7 @@ namespace svgio ...@@ -51,7 +51,7 @@ namespace svgio
else else
{ {
// #i125258# for SVGTokenG take CssStyles into account // #i125258# for SVGTokenG take CssStyles into account
return checkForCssStyle(OUString("g"), maSvgStyleAttributes); return checkForCssStyle("g", maSvgStyleAttributes);
} }
} }
......
...@@ -62,7 +62,7 @@ namespace svgio ...@@ -62,7 +62,7 @@ namespace svgio
const SvgStyleAttributes* SvgImageNode::getSvgStyleAttributes() const 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) void SvgImageNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
......
...@@ -45,7 +45,7 @@ namespace svgio ...@@ -45,7 +45,7 @@ namespace svgio
const SvgStyleAttributes* SvgLineNode::getSvgStyleAttributes() const 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) void SvgLineNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
......
...@@ -48,7 +48,7 @@ namespace svgio ...@@ -48,7 +48,7 @@ namespace svgio
const SvgStyleAttributes* SvgMarkerNode::getSvgStyleAttributes() const 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) void SvgMarkerNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
......
...@@ -43,7 +43,7 @@ namespace svgio ...@@ -43,7 +43,7 @@ namespace svgio
const SvgStyleAttributes* SvgPathNode::getSvgStyleAttributes() const 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) void SvgPathNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
......
...@@ -62,7 +62,7 @@ namespace svgio ...@@ -62,7 +62,7 @@ namespace svgio
const SvgStyleAttributes* SvgPatternNode::getSvgStyleAttributes() const 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) void SvgPatternNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
......
...@@ -47,7 +47,7 @@ namespace svgio ...@@ -47,7 +47,7 @@ namespace svgio
const SvgStyleAttributes* SvgRectNode::getSvgStyleAttributes() const 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) void SvgRectNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
......
...@@ -112,7 +112,7 @@ namespace svgio ...@@ -112,7 +112,7 @@ namespace svgio
const SvgStyleAttributes* SvgSvgNode::getSvgStyleAttributes() const const SvgStyleAttributes* SvgSvgNode::getSvgStyleAttributes() const
{ {
// #i125258# svg node can have CssStyles, too, so check for it here // #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) void SvgSvgNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
......
...@@ -47,7 +47,7 @@ namespace svgio ...@@ -47,7 +47,7 @@ namespace svgio
const SvgStyleAttributes* SvgTextNode::getSvgStyleAttributes() const 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) void SvgTextNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
......
...@@ -228,7 +228,7 @@ namespace svgio ...@@ -228,7 +228,7 @@ namespace svgio
if ( aViewPort.isEmpty() ) if ( aViewPort.isEmpty() )
{ {
#ifdef DBG_UTIL #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 #endif
// no viewPort, assume a normal page size (A4) // no viewPort, assume a normal page size (A4)
aViewPort = basegfx::B2DRange( aViewPort = basegfx::B2DRange(
......
...@@ -39,7 +39,7 @@ namespace svgio ...@@ -39,7 +39,7 @@ namespace svgio
const SvgStyleAttributes* SvgTspanNode::getSvgStyleAttributes() const const SvgStyleAttributes* SvgTspanNode::getSvgStyleAttributes() const
{ {
// #i125293# Need to support CssStyles in tspan text sections // #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) void SvgTspanNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
......
...@@ -46,7 +46,7 @@ namespace svgio ...@@ -46,7 +46,7 @@ namespace svgio
const SvgStyleAttributes* SvgUseNode::getSvgStyleAttributes() const 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) void SvgUseNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
......
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