From 6dddefc6e7ff6dc5cde46dde069ba1d7db4ac34b Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 9 Mar 2013 21:47:17 +0100 Subject: fdo#43460: use isEmpty() Change-Id: Ia768e684d3cf255239c04d024b35488830cc9fe6 --- chart2/source/tools/ObjectIdentifier.cxx | 4 ++-- chart2/source/view/charttypes/VSeriesPlotter.cxx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'chart2') diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx index 358385f059a3..8779f1dd9942 100644 --- a/chart2/source/tools/ObjectIdentifier.cxx +++ b/chart2/source/tools/ObjectIdentifier.cxx @@ -82,14 +82,14 @@ OUString lcl_createClassificationStringForType( ObjectType eObjectType } if( !rDragMethodServiceName.isEmpty() ) { - if( aRet.getLength() ) + if( !aRet.isEmpty() ) aRet.appendAscii(":"); aRet.append( m_aDragMethodEquals ); aRet.append( rDragMethodServiceName ); if( !rDragParameterString.isEmpty() ) { - if( aRet.getLength() ) + if( !aRet.isEmpty() ) aRet.appendAscii(":"); aRet.append( m_aDragParameterEquals ); aRet.append( rDragParameterString ); diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index d32638c8b3e2..6e114ddae0a5 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -515,7 +515,7 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re , nPointIndex, fValue, false /*bAsPercentage*/ ) ); if( !aNumber.isEmpty() ) { - if(aText.getLength()) + if(!aText.isEmpty()) aText.append(aSeparator); aText.append(aNumber); ++nLineCountForSymbolsize; @@ -534,7 +534,7 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re , nPointIndex, fValue, true /*bAsPercentage*/ ) ); if( !aPercentage.isEmpty() ) { - if(aText.getLength()) + if(!aText.isEmpty()) aText.append(aSeparator); aText.append(aPercentage); ++nLineCountForSymbolsize; @@ -1144,7 +1144,7 @@ void VSeriesPlotter::createRegressionCurveEquationShapes( else aScreenPosition2D = aDefaultPos; - if( aFormula.getLength()) + if( !aFormula.isEmpty()) { // set fill and line properties on creation tNameSequence aNames; -- cgit