summaryrefslogtreecommitdiff
path: root/scaddins
diff options
context:
space:
mode:
Diffstat (limited to 'scaddins')
-rw-r--r--scaddins/source/analysis/analysis.cxx2
-rw-r--r--scaddins/source/analysis/analysishelper.cxx6
-rw-r--r--scaddins/source/datefunc/datefunc.cxx2
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;
}