From fffd541c3e626bee162ab4b473b6bd6cd180244e Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Thu, 5 Jan 2012 14:15:36 -0200 Subject: Fix for fdo43460 Part XXIX getLength() to isEmpty() Part XXIX Modules sax, scaddins, sccomp, scripting --- scaddins/source/analysis/analysis.cxx | 2 +- scaddins/source/analysis/analysishelper.cxx | 6 +++--- scaddins/source/datefunc/datefunc.cxx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'scaddins/source') diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx index 4994c3692f91..357706e470c7 100644 --- a/scaddins/source/analysis/analysis.cxx +++ b/scaddins/source/analysis/analysis.cxx @@ -1227,7 +1227,7 @@ STRING SAL_CALL AnalysisAddIn::getComplex( double fR, double fI, const ANY& rSuf case uno::TypeClass_STRING: { const STRING* pSuff = ( const STRING* ) rSuff.getValue(); - bi = pSuff->compareToAscii( "i" ) == 0 || pSuff->getLength() == 0; + bi = pSuff->compareToAscii( "i" ) == 0 || pSuff->isEmpty(); if( !bi && pSuff->compareToAscii( "j" ) != 0 ) THROW_IAE; } diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx index b9d505cf4c32..c2e17a8c05a8 100644 --- a/scaddins/source/analysis/analysishelper.cxx +++ b/scaddins/source/analysis/analysishelper.cxx @@ -1987,7 +1987,7 @@ void ComplexList::Append( const SEQSEQ( STRING )& r, ComplListAppendHandl eAH ) { const STRING& rStr = rList[ n2 ]; - if( rStr.getLength() ) + if( !rStr.isEmpty() ) Append( new Complex( rStr ) ); else if( bEmpty0 ) Append( new Complex( 0.0 ) ); @@ -2014,7 +2014,7 @@ void ComplexList::Append( const SEQ( ANY )& aMultPars, ComplListAppendHandl eAH { const STRING* pStr = ( const STRING* ) r.getValue(); - if( pStr->getLength() ) + if( !pStr->isEmpty() ) Append( new Complex( *( STRING* ) r.getValue() ) ); else if( bEmpty0 ) Append( new Complex( 0.0 ) ); @@ -2781,7 +2781,7 @@ sal_Bool ScaAnyConverter::getDouble( case uno::TypeClass_STRING: { const OUString* pString = static_cast< const OUString* >( rAny.getValue() ); - if( pString->getLength() ) + if( !pString->isEmpty() ) rfResult = convertToDouble( *pString ); else bContainsVal = sal_False; diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx index e3d11bdbbb0c..4ae9543a3fc4 100644 --- a/scaddins/source/datefunc/datefunc.cxx +++ b/scaddins/source/datefunc/datefunc.cxx @@ -517,7 +517,7 @@ OUString SAL_CALL ScaDateAddIn::getProgrammaticCategoryName( } } - if( !aRet.getLength() ) + if( aRet.isEmpty() ) aRet = STR_FROM_ANSI( "Add-In" ); return aRet; } -- cgit