diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-05 14:15:36 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-05 22:05:45 -0200 |
commit | fffd541c3e626bee162ab4b473b6bd6cd180244e (patch) | |
tree | 17197936ca83815d876d0c1de0c7a045a7768f7b /scaddins/source | |
parent | 15f5d766837329baa8deff31e9da33cef87f7a98 (diff) |
Fix for fdo43460 Part XXIX getLength() to isEmpty()
Part XXIX
Modules
sax, scaddins, sccomp, scripting
Diffstat (limited to 'scaddins/source')
-rw-r--r-- | scaddins/source/analysis/analysis.cxx | 2 | ||||
-rw-r--r-- | scaddins/source/analysis/analysishelper.cxx | 6 | ||||
-rw-r--r-- | scaddins/source/datefunc/datefunc.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
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; } |