summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-22 11:13:17 +0200
committerNoel Grandin <noel@peralex.com>2013-11-22 11:23:05 +0200
commitfc87d57f04132658e1c3481e92fe36e1183423ed (patch)
tree473a9dd4861e878cdc6e49f394b298df8732c3a3 /oox
parentcdb1981b2d33571b986376e77955045417a46aad (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 'oox')
-rw-r--r--oox/source/export/chartexport.cxx40
1 files changed, 20 insertions, 20 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 36412be51e12..fb8f2a944142 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -393,35 +393,35 @@ void lcl_fillCategoriesIntoStringVector(
sal_Int32 lcl_getChartType( const OUString& sChartType )
{
chart::TypeId eChartTypeId = chart::TYPEID_UNKNOWN;
- if(( 0 == sChartType.reverseCompareTo( "com.sun.star.chart.BarDiagram" ))
- || ( 0 == sChartType.reverseCompareTo( "com.sun.star.chart2.ColumnChartType" )))
+ if( sChartType == "com.sun.star.chart.BarDiagram"
+ || sChartType == "com.sun.star.chart2.ColumnChartType" )
eChartTypeId = chart::TYPEID_BAR;
- else if(( 0 == sChartType.reverseCompareTo( "com.sun.star.chart.AreaDiagram" ))
- || ( 0 == sChartType.reverseCompareTo( "com.sun.star.chart2.AreaChartType" ) ) )
+ else if( sChartType == "com.sun.star.chart.AreaDiagram"
+ || sChartType == "com.sun.star.chart2.AreaChartType" )
eChartTypeId = chart::TYPEID_AREA;
- else if(( 0 == sChartType.reverseCompareTo( "com.sun.star.chart.LineDiagram" ))
- || ( 0 == sChartType.reverseCompareTo( "com.sun.star.chart2.LineChartType" ) ) )
+ else if( sChartType == "com.sun.star.chart.LineDiagram"
+ || sChartType == "com.sun.star.chart2.LineChartType" )
eChartTypeId = chart::TYPEID_LINE;
- else if(( 0 == sChartType.reverseCompareTo( "com.sun.star.chart.PieDiagram" ))
- || ( 0 == sChartType.reverseCompareTo( "com.sun.star.chart2.PieChartType") ) )
+ else if( sChartType == "com.sun.star.chart.PieDiagram"
+ || sChartType == "com.sun.star.chart2.PieChartType" )
eChartTypeId = chart::TYPEID_PIE;
- else if(( 0 == sChartType.reverseCompareTo( "com.sun.star.chart.DonutDiagram"))
- || ( 0 == sChartType.reverseCompareTo( "com.sun.star.chart2.DonutChartType") ) )
+ else if( sChartType == "com.sun.star.chart.DonutDiagram"
+ || sChartType == "com.sun.star.chart2.DonutChartType" )
eChartTypeId = chart::TYPEID_DOUGHNUT;
- else if(( 0 == sChartType.reverseCompareTo( "com.sun.star.chart.XYDiagram"))
- || ( 0 == sChartType.reverseCompareTo( "com.sun.star.chart2.ScatterChartType") ) )
+ else if( sChartType == "com.sun.star.chart.XYDiagram"
+ || sChartType == "com.sun.star.chart2.ScatterChartType" )
eChartTypeId = chart::TYPEID_SCATTER;
- else if(( 0 == sChartType.reverseCompareTo( "com.sun.star.chart.NetDiagram"))
- || ( 0 == sChartType.reverseCompareTo( "com.sun.star.chart2.NetChartType") ) )
+ else if( sChartType == "com.sun.star.chart.NetDiagram"
+ || sChartType == "com.sun.star.chart2.NetChartType" )
eChartTypeId = chart::TYPEID_RADARLINE;
- else if(( 0 == sChartType.reverseCompareTo( "com.sun.star.chart.FilledNetDiagram"))
- || ( 0 == sChartType.reverseCompareTo( "com.sun.star.chart2.FilledNetChartType") ) )
+ else if( sChartType == "com.sun.star.chart.FilledNetDiagram"
+ || sChartType == "com.sun.star.chart2.FilledNetChartType" )
eChartTypeId = chart::TYPEID_RADARAREA;
- else if(( 0 == sChartType.reverseCompareTo( "com.sun.star.chart.StockDiagram"))
- || ( 0 == sChartType.reverseCompareTo( "com.sun.star.chart2.CandleStickChartType") ) )
+ else if( sChartType == "com.sun.star.chart.StockDiagram"
+ || sChartType == "com.sun.star.chart2.CandleStickChartType" )
eChartTypeId = chart::TYPEID_STOCK;
- else if(( 0 == sChartType.reverseCompareTo( "com.sun.star.chart.BubbleDiagram"))
- || ( 0 == sChartType.reverseCompareTo( "com.sun.star.chart2.BubbleChartType") ) )
+ else if( sChartType == "com.sun.star.chart.BubbleDiagram"
+ || sChartType == "com.sun.star.chart2.BubbleChartType" )
eChartTypeId = chart::TYPEID_BUBBLE;
return eChartTypeId;