From a17fb882569046cd9f6940cf2e87435200bb666b Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Mon, 26 Dec 2011 17:19:24 -0200 Subject: Fix for fdo43460 Part XXI getLength() to isEmpty() Part XXI Modules i18npool, idl, idlc, io, javaunohelper, jvmaccess --- idl/source/prj/database.cxx | 4 ++-- idl/source/prj/svidl.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'idl') diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx index d3882cff557c..2cddc15b444b 100644 --- a/idl/source/prj/database.cxx +++ b/idl/source/prj/database.cxx @@ -575,7 +575,7 @@ void SvIdlDataBase::WriteError( SvTokenStream & rInStm ) { // error set // search error token // error text - if( aError.GetText().getLength() ) + if( !aError.GetText().isEmpty() ) { aErrorText.append(RTL_CONSTASCII_STRINGPARAM("may be <")); aErrorText.append(aError.GetText()); @@ -617,7 +617,7 @@ void SvIdlDataBase::WriteError( SvTokenStream & rInStm ) if( pTok && pTok->IsIdentifier() ) { rtl::OString aN = IDLAPP->pHashTable->GetNearString( pTok->GetString() ); - if( aN.getLength() ) + if( !aN.isEmpty() ) fprintf( stderr, "%s versus %s\n", pTok->GetString().GetBuffer(), aN.getStr() ); } } diff --git a/idl/source/prj/svidl.cxx b/idl/source/prj/svidl.cxx index f633c9a7aa1c..c250f35bcf96 100644 --- a/idl/source/prj/svidl.cxx +++ b/idl/source/prj/svidl.cxx @@ -232,7 +232,7 @@ int cdecl main ( int argc, char ** argv) fprintf(stderr, "%s\n", aStr.getStr()); } } - if (nExit == 0 && aCommand.m_DepFile.getLength()) + if (nExit == 0 && !aCommand.m_DepFile.isEmpty()) { DirEntry aDE(aCommand.m_DepFile); aDE.ToAbs(); @@ -336,7 +336,7 @@ int cdecl main ( int argc, char ** argv) aErrFile2 = aTmpDocuFile; } } - if (!bErr && aCommand.m_DepFile.getLength()) + if (!bErr && !aCommand.m_DepFile.isEmpty()) { bErr |= !FileMove_Impl( aCommand.m_DepFile, aTmpDepFile, bDoMove ); if (bErr) { -- cgit