diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-25 17:35:42 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-04 10:11:08 +0200 |
commit | 5285beeaa49f6678b471d472868c305c7d9da5f9 (patch) | |
tree | a3dbd28995142ab16b448f28e95821115ef5408f /xmloff | |
parent | aeb41c9b9b7559c6d87bf92807acdc0df9e104cc (diff) |
remove redundant calls to OUString constructor in if expression
Convert code like:
if( aStr == OUString("xxxx") )
to this:
if( aStr == "xxxx" )
Change-Id: I8d201f048477731eff590fb988259ef0935c080c
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/PropertyMaps.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmloff/source/chart/PropertyMaps.cxx b/xmloff/source/chart/PropertyMaps.cxx index dc303f8abe7c..9d73fc358431 100644 --- a/xmloff/source/chart/PropertyMaps.cxx +++ b/xmloff/source/chart/PropertyMaps.cxx @@ -460,17 +460,17 @@ void XMLChartExportPropertyMapper::handleSpecialItem( { OUString aServiceName; rProperty.maValue >>= aServiceName; - if (aServiceName == OUString("com.sun.star.chart2.LinearRegressionCurve")) + if (aServiceName == "com.sun.star.chart2.LinearRegressionCurve") sValueBuffer.append( GetXMLToken( XML_LINEAR )); - else if (aServiceName == OUString("com.sun.star.chart2.LogarithmicRegressionCurve")) + else if (aServiceName == "com.sun.star.chart2.LogarithmicRegressionCurve") sValueBuffer.append( GetXMLToken( XML_LOGARITHMIC )); - else if (aServiceName == OUString("com.sun.star.chart2.ExponentialRegressionCurve")) + else if (aServiceName == "com.sun.star.chart2.ExponentialRegressionCurve") sValueBuffer.append( GetXMLToken( XML_EXPONENTIAL )); - else if (aServiceName == OUString("com.sun.star.chart2.PotentialRegressionCurve")) + else if (aServiceName == "com.sun.star.chart2.PotentialRegressionCurve") sValueBuffer.append( GetXMLToken( XML_POWER )); - else if (aServiceName == OUString("com.sun.star.chart2.PolynomialRegressionCurve")) + else if (aServiceName == "com.sun.star.chart2.PolynomialRegressionCurve") sValueBuffer.append( GetXMLToken( XML_POLYNOMIAL )); - else if (aServiceName == OUString("com.sun.star.chart2.MovingAverageRegressionCurve")) + else if (aServiceName == "com.sun.star.chart2.MovingAverageRegressionCurve") sValueBuffer.append( GetXMLToken( XML_MOVING_AVERAGE )); } break; |