diff options
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/runtime/step2.cxx | 6 | ||||
-rw-r--r-- | basic/source/sbx/sbxvalue.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/runtime/step2.cxx b/basic/source/runtime/step2.cxx index d7f2a8dd9308..f6fa096ce511 100644 --- a/basic/source/runtime/step2.cxx +++ b/basic/source/runtime/step2.cxx @@ -299,7 +299,7 @@ SbxBase* SbiRuntime::FindElementExtern( const OUString& rName ) // in the RunInit yet SbxVariable* pElem = NULL; - if( !pMod || !rName.getLength() ) + if( !pMod || rName.isEmpty() ) { return NULL; } @@ -406,7 +406,7 @@ void SbiRuntime::SetupArgs( SbxVariable* p, sal_uInt32 nOp1 ) { SbxVariable* pVar = refArgv->Get( i ); const OUString& rName = refArgv->GetAlias( i ); - if( rName.getLength() ) + if( !rName.isEmpty() ) { pNames[i] = rName; } @@ -463,7 +463,7 @@ void SbiRuntime::SetupArgs( SbxVariable* p, sal_uInt32 nOp1 ) { SbxVariable* pVar = refArgv->Get( i ); const OUString& rName = refArgv->GetAlias( i ); - if( rName.getLength() ) + if( !rName.isEmpty() ) { // nCurPar is set to the found parameter sal_uInt16 j = 1; diff --git a/basic/source/sbx/sbxvalue.cxx b/basic/source/sbx/sbxvalue.cxx index 7356f8978343..1e3191664a1d 100644 --- a/basic/source/sbx/sbxvalue.cxx +++ b/basic/source/sbx/sbxvalue.cxx @@ -1469,7 +1469,7 @@ sal_Bool SbxValue::LoadData( SvStream& r, sal_uInt16 ) { OUString aVal = read_lenPrefixed_uInt8s_ToOUString<sal_uInt16>(r, RTL_TEXTENCODING_ASCII_US); - if( aVal.getLength() ) + if( !aVal.isEmpty() ) aData.pOUString = new OUString( aVal ); else aData.pOUString = NULL; // JSM 1995-09-22 |