diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-22 11:13:17 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-22 11:23:05 +0200 |
commit | fc87d57f04132658e1c3481e92fe36e1183423ed (patch) | |
tree | 473a9dd4861e878cdc6e49f394b298df8732c3a3 /xmloff/source/chart/SchXMLChartContext.cxx | |
parent | cdb1981b2d33571b986376e77955045417a46aad (diff) |
replace OUString::reverseCompareTo("xxx") with operator==
operator== with OUString and literal internally does a reverse-compare
(via OUString::equalsAsciiL) anyway, so no need to keep explicit calls
to OUString::reverseCompareTo with literal argument
Change-Id: I799d9bcd0d5c308a9547ce7cacb2db6042fdb643
Diffstat (limited to 'xmloff/source/chart/SchXMLChartContext.cxx')
-rw-r--r-- | xmloff/source/chart/SchXMLChartContext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx index 18cd1bc27390..9014d5556bad 100644 --- a/xmloff/source/chart/SchXMLChartContext.cxx +++ b/xmloff/source/chart/SchXMLChartContext.cxx @@ -855,7 +855,7 @@ void SchXMLChartContext::EndElement() bool bLinesOn = true; if( (maSeriesDefaultsAndStyles.maLinesOnProperty >>= bLinesOn) && !bLinesOn ) { - if( 0 == maChartTypeServiceName.reverseCompareTo( "com.sun.star.chart2.ScatterChartType" ) ) + if( maChartTypeServiceName == "com.sun.star.chart2.ScatterChartType" ) { bSwitchOffLinesForScatter = true; SchXMLSeries2Context::switchSeriesLinesOff( maSeriesDefaultsAndStyles.maSeriesStyleList ); |