Index: bridges/source/cpp_uno/shared/vtablefactory.cxx =================================================================== --- bridges/source/cpp_uno/shared/vtablefactory.cxx (revision 1563353) +++ bridges/source/cpp_uno/shared/vtablefactory.cxx (working copy) @@ -255,9 +255,9 @@ if (aSecurity.getHomeDir(strURLDirectory)) osl::File::getSystemPathFromFileURL(strURLDirectory, strDirectory); - for (int i = strDirectory.getLength() == 0 ? 1 : 0; i < 2; ++i) + for (int i = strDirectory.isEmpty() ? 1 : 0; i < 2; ++i) { - if (!strDirectory.getLength()) + if (strDirectory.isEmpty()) strDirectory = rtl::OUString::createFromAscii("/tmp"); strDirectory += rtl::OUString::createFromAscii("/.execoooXXXXXX"); Index: bridges/source/cpp_uno/cc50_solaris_sparc/except.cxx =================================================================== --- bridges/source/cpp_uno/cc50_solaris_sparc/except.cxx (revision 1563353) +++ bridges/source/cpp_uno/cc50_solaris_sparc/except.cxx (working copy) @@ -77,7 +77,7 @@ { if( *pRTTI == ':' || ! *pRTTI ) { - if( aRet.getLength() ) + if( !aRet.isEmpty() ) aRet += "."; aRet += rRTTIname.copy( pLast - pOrg, pRTTI - pLast ); while( *pRTTI == ':' ) @@ -111,7 +111,7 @@ static OString toRTTImangledname( const OString & rRTTIname ) { - if( ! rRTTIname.getLength() ) + if( rRTTIname.isEmpty() ) return OString(); OStringBuffer aRet( rRTTIname.getLength()*2 ); Index: bridges/source/cpp_uno/cc50_solaris_intel/except.cxx =================================================================== --- bridges/source/cpp_uno/cc50_solaris_intel/except.cxx (revision 1563353) +++ bridges/source/cpp_uno/cc50_solaris_intel/except.cxx (working copy) @@ -75,7 +75,7 @@ { if( *pRTTI == ':' || ! *pRTTI ) { - if( aRet.getLength() ) + if( !aRet.isEmpty() ) aRet += "."; aRet += rRTTIname.copy( pLast - pOrg, pRTTI - pLast ); while( *pRTTI == ':' ) @@ -109,7 +109,7 @@ static OString toRTTImangledname( const OString & rRTTIname ) { - if( ! rRTTIname.getLength() ) + if( rRTTIname.isEmpty() ) return OString(); OStringBuffer aRet( rRTTIname.getLength()*2 ); Index: bridges/source/jni_uno/jni_data.cxx =================================================================== --- bridges/source/jni_uno/jni_data.cxx (revision 1563353) +++ bridges/source/jni_uno/jni_data.cxx (working copy) @@ -1800,7 +1800,7 @@ // polymorphic struct types: rtl::OUString const & name = rtl::OUString::unacquired( &pAny->pType->pTypeName); - OSL_ASSERT(name.getLength() > 0); + OSL_ASSERT(!name.isEmpty()); if (name[name.getLength() - 1] == '>') { // Box up in com.sun.star.uno.Any: Index: binaryurp/source/writer.cxx =================================================================== --- binaryurp/source/writer.cxx (revision 1563353) +++ binaryurp/source/writer.cxx (working copy) @@ -210,7 +210,7 @@ std::vector< BinaryAny > const & inArguments, bool currentContextMode, css::uno::UnoInterfaceReference const & currentContext) { - OSL_ASSERT(tid.getLength() != 0 && oid.getLength() != 0 && member.is()); + OSL_ASSERT(tid.getLength() != 0 && !oid.isEmpty() && member.is()); css::uno::TypeDescription t(type); sal_Int32 functionId = 0; bool forceSynchronous = false; Index: binaryurp/source/bridge.cxx =================================================================== --- binaryurp/source/bridge.cxx (revision 1563353) +++ binaryurp/source/bridge.cxx (working copy) @@ -327,7 +327,7 @@ rtl::OUString const & oid, css::uno::TypeDescription const & type) { OSL_ASSERT(type.is()); - if (oid.getLength() == 0) { + if ( oid.isEmpty() ) { return css::uno::UnoInterfaceReference(); } css::uno::UnoInterfaceReference obj(findStub(oid, type)); @@ -410,7 +410,7 @@ css::uno::UnoInterfaceReference Bridge::findStub( rtl::OUString const & oid, css::uno::TypeDescription const & type) { - OSL_ASSERT(oid.getLength() != 0 && type.is()); + OSL_ASSERT(!oid.isEmpty() && type.is()); osl::MutexGuard g(mutex_); Stubs::iterator i(stubs_.find(oid)); if (i != stubs_.end()) { @@ -432,7 +432,7 @@ void Bridge::releaseStub( rtl::OUString const & oid, css::uno::TypeDescription const & type) { - OSL_ASSERT(oid.getLength() != 0 && type.is()); + OSL_ASSERT(!oid.isEmpty() && type.is()); css::uno::UnoInterfaceReference obj; bool unused; { @@ -796,7 +796,7 @@ css::uno::Reference< css::uno::XInterface > Bridge::getInstance( rtl::OUString const & sInstanceName) throw (css::uno::RuntimeException) { - if (sInstanceName.getLength() == 0) { + if ( sInstanceName.isEmpty() ) { throw css::uno::RuntimeException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( Index: binaryurp/source/reader.cxx =================================================================== --- binaryurp/source/reader.cxx (revision 1563353) +++ binaryurp/source/reader.cxx (working copy) @@ -210,7 +210,7 @@ rtl::OUString oid; if (newOid) { oid = unmarshal.readOid(); - if (oid.getLength() == 0) { + if ( oid.isEmpty() ) { throw css::io::IOException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( @@ -219,7 +219,7 @@ } lastOid_ = oid; } else { - if (lastOid_.getLength() == 0) { + if ( lastOid_.isEmpty() ) { throw css::uno::RuntimeException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( Index: binaryurp/source/unmarshal.cxx =================================================================== --- binaryurp/source/unmarshal.cxx (revision 1563353) +++ binaryurp/source/unmarshal.cxx (working copy) @@ -244,8 +244,8 @@ } } sal_uInt16 idx = readCacheIndex(); - if (oid.getLength() == 0 && idx != cache::ignore) { - if (state_.oidCache[idx].getLength() == 0) { + if (oid.isEmpty() && idx != cache::ignore) { + if ( state_.oidCache[idx].isEmpty() ) { throw css::io::IOException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( Index: binaryurp/source/marshal.cxx =================================================================== --- binaryurp/source/marshal.cxx (revision 1563353) +++ binaryurp/source/marshal.cxx (working copy) @@ -162,7 +162,7 @@ { bool found; sal_uInt16 idx; - if (oid.getLength() == 0) { + if ( oid.isEmpty() ) { found = true; idx = cache::ignore; } else { Index: binaryurp/source/bridgefactory.cxx =================================================================== --- binaryurp/source/bridgefactory.cxx (revision 1563353) +++ binaryurp/source/bridgefactory.cxx (working copy) @@ -75,7 +75,7 @@ OSL_ASSERT(bridge.is()); rtl::OUString n(bridge->getName()); osl::MutexGuard g(*this); - if (n.getLength() == 0) { + if ( n.isEmpty() ) { BridgeList::iterator i( std::find(unnamed_.begin(), unnamed_.end(), bridge)); if (i != unnamed_.end()) { @@ -149,7 +149,7 @@ static_cast< cppu::OWeakObject * >(this), -1); } b.set(new Bridge(this, sName, aConnection, anInstanceProvider)); - if (sName.getLength() == 0) { + if ( sName.isEmpty() ) { unnamed_.push_back( css::uno::Reference< css::bridge::XBridge >(b.get())); } else { Index: basic/source/comp/sbcomp.cxx =================================================================== --- basic/source/comp/sbcomp.cxx (revision 1563353) +++ basic/source/comp/sbcomp.cxx (working copy) @@ -589,7 +589,7 @@ const TraceTextData& rTraceTextData = itInner->second; const rtl::OString& rStr_STMNT = rTraceTextData.m_aTraceStr_STMNT; bool bSTMT = false; - if( rStr_STMNT.getLength() ) + if( !rStr_STMNT.isEmpty() ) bSTMT = true; char TimeBuffer[200]; @@ -619,7 +619,7 @@ nIndent += GnIndentForPCode; const rtl::OString& rStr_PCode = rTraceTextData.m_aTraceStr_PCode; - if( rStr_PCode.getLength() ) + if( !rStr_PCode.isEmpty() ) { lcl_lineOut( rStr_PCode.getStr(), lcl_getSpaces( nIndent ), bPrintTimeStamp ? TimeBuffer : NULL ); Index: basic/source/basmgr/vbahelper.cxx =================================================================== --- basic/source/basmgr/vbahelper.cxx (revision 1563353) +++ basic/source/basmgr/vbahelper.cxx (working copy) @@ -220,7 +220,7 @@ void registerCurrentDirectory( const uno::Reference< frame::XModel >& rxModel, const ::rtl::OUString& rPath ) { - if( rPath.getLength() > 0 ) + if( !rPath.isEmpty() ) { CurrDirPool& rPool = StaticCurrDirPool::get(); ::osl::MutexGuard aGuard( rPool.maMutex ); @@ -228,7 +228,7 @@ { uno::Reference< frame::XModuleManager > xModuleManager( lclCreateModuleManager(), uno::UNO_SET_THROW ); ::rtl::OUString aIdentifier = xModuleManager->identify( rxModel ); - if( aIdentifier.getLength() > 0 ) + if( !aIdentifier.isEmpty() ) rPool.maCurrDirs[ aIdentifier ] = rPath; } catch( uno::Exception& ) Index: basic/source/basmgr/basmgr.cxx =================================================================== --- basic/source/basmgr/basmgr.cxx (revision 1563353) +++ basic/source/basmgr/basmgr.cxx (working copy) @@ -270,7 +270,7 @@ void SAL_CALL BasMgrContainerListenerImpl::elementInserted( const ContainerEvent& Event ) throw( RuntimeException ) { - sal_Bool bLibContainer = ( maLibName.getLength() == 0 ); + sal_Bool bLibContainer = maLibName.isEmpty(); ::rtl::OUString aName; Event.Accessor >>= aName; @@ -326,7 +326,7 @@ // Replace not possible for library container #ifdef DBG_UTIL - sal_Bool bLibContainer = ( maLibName.getLength() == 0 ); + sal_Bool bLibContainer = maLibName.isEmpty(); #endif DBG_ASSERT( !bLibContainer, "library container fired elementReplaced()"); @@ -356,7 +356,7 @@ mpMgr->mpImpl->mbModifiedByLibraryContainer = sal_True; - sal_Bool bLibContainer = ( maLibName.getLength() == 0 ); + sal_Bool bLibContainer = maLibName.isEmpty(); if( bLibContainer ) { StarBASIC* pLib = mpMgr->GetLib( aName ); Index: basic/source/classes/image.cxx =================================================================== --- basic/source/classes/image.cxx (revision 1563353) +++ basic/source/classes/image.cxx (working copy) @@ -298,7 +298,7 @@ SbiCloseRecord( r, nPos ); } // Source? - if( aOUSource.getLength() && SbiGood( r ) ) + if( !aOUSource.isEmpty() && SbiGood( r ) ) { nPos = SbiOpenRecord( r, B_SOURCE, 1 ); String aTmp; Index: basic/source/classes/sbunoobj.cxx =================================================================== --- basic/source/classes/sbunoobj.cxx (revision 1563353) +++ basic/source/classes/sbunoobj.cxx (working copy) @@ -333,7 +333,7 @@ lcl_indent( _inout_rBuffer, _nLevel ); _inout_rBuffer.appendAscii( "Type: " ); - if ( _rExceptionType.getLength() == 0 ) + if ( _rExceptionType.isEmpty() ) _inout_rBuffer.appendAscii( "Unknown" ); else _inout_rBuffer.append( _rExceptionType ); @@ -1773,7 +1773,7 @@ { rtl::OUString sTypeName; xInv->getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("$GetTypeName") ) ) >>= sTypeName; - if ( sTypeName.getLength() == 0 || sTypeName.equals( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("IDispatch") ) ) ) + if ( sTypeName.isEmpty() || sTypeName.equals( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("IDispatch") ) ) ) // can't check type, leave it pass result = true; else @@ -2298,7 +2298,7 @@ bBlockConversionToSmallestType ); ::rtl::OUString aParamName = pNames[iSbx]; - if( aParamName.getLength() ) + if( !aParamName.isEmpty() ) { oleautomation::NamedArgument aNamedArgument; aNamedArgument.Name = aParamName; @@ -2755,7 +2755,7 @@ if( mxExactName.is() ) { ::rtl::OUString aUExactName = mxExactName->getExactName( aUName ); - if( aUExactName.getLength() ) + if( !aUExactName.isEmpty() ) aUName = aUExactName; } if( mxUnoAccess->hasProperty( aUName, PropertyConcept::ALL - PropertyConcept::DANGEROUS ) ) @@ -2831,7 +2831,7 @@ if( mxExactNameInvocation.is() ) { ::rtl::OUString aUExactName = mxExactNameInvocation->getExactName( aUName ); - if( aUExactName.getLength() ) + if( !aUExactName.isEmpty() ) aUName = aUExactName; } @@ -4778,7 +4778,7 @@ SbxVariable* pVar = pModIfaces->Get( i ); ::rtl::OUString aIfaceName = pVar->GetName(); - if( aIfaceName.getLength() != 0 ) + if( !aIfaceName.isEmpty() ) { ::rtl::OUString aPureIfaceName = aIfaceName; sal_Int32 indexLastDot = aIfaceName.lastIndexOf('.'); Index: basic/source/uno/namecont.cxx =================================================================== --- basic/source/uno/namecont.cxx (revision 1563353) +++ basic/source/uno/namecont.cxx (working copy) @@ -605,7 +605,7 @@ meInitMode = DEFAULT; INetURLObject aInitUrlInetObj( maInitialDocumentURL ); OUString aInitFileName = aInitUrlInetObj.GetMainURL( INetURLObject::NO_DECODE ); - if( aInitFileName.getLength() ) + if( !aInitFileName.isEmpty() ) { // We need a BasicManager to avoid problems StarBASIC* pBas = new StarBASIC(); @@ -834,7 +834,7 @@ // Check storage URL OUString aStorageURL = rLib.aStorageURL; - if( !bStorage && !aStorageURL.getLength() && nPass == 0 ) + if( !bStorage && aStorageURL.isEmpty() && nPass == 0 ) { String aLibraryPath; if( meInitMode == CONTAINER_INIT_FILE ) @@ -1239,7 +1239,7 @@ rtl::OUString aLibURL; bool bPureDialogLib = false; - while( (aLibURL = aScriptIt.nextBasicOrDialogLibrary( bPureDialogLib )).getLength() > 0 ) + while( (aLibURL = aScriptIt.nextBasicOrDialogLibrary( bPureDialogLib )).isEmpty() == false ) { if( bPureDialogLib && maInfoFileName.equalsAscii( "script" ) ) continue; @@ -1351,7 +1351,7 @@ ( SfxLibrary* pLib, const OUString& aName ) { OUString aLibDirPath = pLib->maStorageURL; - if( !aLibDirPath.getLength() ) + if( aLibDirPath.isEmpty() ) { INetURLObject aInetObj( String(maLibraryPath).GetToken(1) ); aInetObj.insertName( aName, sal_True, INetURLObject::LAST_SEGMENT, sal_True, INetURLObject::ENCODE_ALL ); @@ -1976,7 +1976,7 @@ // if we did an in-place save into a storage (i.e. a save into the storage we were already based on), // then we need to clean up the temporary storage we used for this - if ( bInplaceStorage && sTempTargetStorName.getLength() ) + if ( bInplaceStorage && !sTempTargetStorName.isEmpty() ) { OSL_ENSURE( xSourceLibrariesStor.is(), "SfxLibrariesContainer::storeLibraries_impl: unexpected: we should have a source storage here!" ); try @@ -3119,7 +3119,7 @@ implSetModified( sal_True ); // Remove element file - if( maStorageURL.getLength() ) + if( !maStorageURL.isEmpty() ) { INetURLObject aElementInetObj( maStorageURL ); aElementInetObj.insertName( _rElementName, sal_False, @@ -3254,7 +3254,7 @@ { rtl::OUString aRetLib; - while( !aRetLib.getLength() && m_eState != END_REACHED ) + while( aRetLib.isEmpty() && m_eState != END_REACHED ) { switch( m_eState ) { Index: basic/source/uno/scriptcont.cxx =================================================================== --- basic/source/uno/scriptcont.cxx (revision 1563353) +++ basic/source/uno/scriptcont.cxx (working copy) @@ -304,7 +304,7 @@ // TODO: Check language // aMod.aLanguage // aMod.aName ignored - if( aMod.aModuleType.getLength() > 0 ) + if( !aMod.aModuleType.isEmpty() ) { /* If in VBA compatibility mode, force creation of the VBA Globals object. Each application will create an instance of its own @@ -474,8 +474,8 @@ if( OldPassword == NewPassword ) return; - sal_Bool bOldPassword = ( OldPassword.getLength() > 0 ); - sal_Bool bNewPassword = ( NewPassword.getLength() > 0 ); + sal_Bool bOldPassword = !OldPassword.isEmpty(); + sal_Bool bNewPassword = !NewPassword.isEmpty(); sal_Bool bStorage = mxStorage.is() && !pImplLib->mbLink; if( pImplLib->mbReadOnly || (bOldPassword && !pImplLib->mbPasswordProtected) ) @@ -1264,7 +1264,7 @@ { OUString sModuleText; aElement >>= sModuleText; - return ( sModuleText.getLength() > 0 ); + return ( !sModuleText.isEmpty() ); } bool SAL_CALL SfxScriptLibrary::isLibraryElementValid( ::com::sun::star::uno::Any aElement ) const Index: basic/source/runtime/methods1.cxx =================================================================== --- basic/source/runtime/methods1.cxx (revision 1563353) +++ basic/source/runtime/methods1.cxx (working copy) @@ -1597,9 +1597,9 @@ String aStr = rPar.Get(1)->GetString(); INetURLObject aURLObj( aStr, INET_PROT_FILE ); ::rtl::OUString aFileURL = aURLObj.GetMainURL( INetURLObject::NO_DECODE ); - if( !aFileURL.getLength() ) + if( aFileURL.isEmpty() ) ::osl::File::getFileURLFromSystemPath( aFileURL, aFileURL ); - if( !aFileURL.getLength() ) + if( aFileURL.isEmpty() ) aFileURL = aStr; rPar.Get(0)->PutString( String(aFileURL) ); } @@ -1617,7 +1617,7 @@ String aStr = rPar.Get(1)->GetString(); ::rtl::OUString aSysPath; ::osl::File::getSystemPathFromFileURL( aStr, aSysPath ); - if( !aSysPath.getLength() ) + if( aSysPath.isEmpty() ) aSysPath = aStr; rPar.Get(0)->PutString( String(aSysPath) ); } Index: basic/source/runtime/methods.cxx =================================================================== --- basic/source/runtime/methods.cxx (revision 1563353) +++ basic/source/runtime/methods.cxx (working copy) @@ -169,7 +169,7 @@ INetURLObject aURLObj( aRelPath ); aFileURL = aURLObj.GetMainURL( INetURLObject::NO_DECODE ); - if( !aFileURL.getLength() ) + if( aFileURL.isEmpty() ) { File::getFileURLFromSystemPath( aRelPath, aFileURL ); } @@ -283,7 +283,7 @@ if ( bVBA && rPar.Count() > 1 ) { com::sun::star::uno::Reference< ooo::vba::XErrObject > xErrObj( SbxErrObject::getUnoErrObject() ); - if ( xErrObj.is() && xErrObj->getNumber() == nCode && xErrObj->getDescription().getLength() ) + if ( xErrObj.is() && xErrObj->getNumber() == nCode && !xErrObj->getDescription().isEmpty() ) tmpErrMsg = xErrObj->getDescription(); } rPar.Get( 0 )->PutString( tmpErrMsg ); Index: basic/source/runtime/dllmgr.cxx =================================================================== --- basic/source/runtime/dllmgr.cxx (revision 1563353) +++ basic/source/runtime/dllmgr.cxx (working copy) @@ -577,7 +577,7 @@ SbError getProcData(HMODULE handle, rtl::OUString const & name, ProcData * proc) { OSL_ASSERT(proc != 0); - if (name.getLength() != 0 && name[0] == '@') { //TODO: "@" vs. "#"??? + if ( !name.isEmpty() && name[0] == '@' ) { //TODO: "@" vs. "#"??? sal_Int32 n = name.copy(1).toInt32(); //TODO: handle bad input if (n <= 0 || n > 0xFFFF) { return ERRCODE_BASIC_BAD_ARGUMENT; //TODO: more specific errcode? Index: basic/source/runtime/iosys.cxx =================================================================== --- basic/source/runtime/iosys.cxx (revision 1563353) +++ basic/source/runtime/iosys.cxx (working copy) @@ -274,7 +274,7 @@ const Reference< XBridge >& rxBridge = pBridges[ i ]; ::rtl::OUString aDescription = rxBridge->getDescription(); ::rtl::OUString aPortalUser = findUserInDescription( aDescription ); - if( aPortalUser.getLength() > 0 ) + if( !aPortalUser.isEmpty() ) { // User Found, compare to system user if( aPortalUser == aSystemUser ) Index: basic/source/runtime/step2.cxx =================================================================== --- basic/source/runtime/step2.cxx (revision 1563353) +++ basic/source/runtime/step2.cxx (working copy) @@ -424,7 +424,7 @@ rtl::OUString sDefaultMethod; if ( xDfltMethod.is() ) sDefaultMethod = xDfltMethod->getDefaultMethodName(); - if ( sDefaultMethod.getLength() ) + if ( !sDefaultMethod.isEmpty() ) { SbxVariable* meth = pUnoObj->Find( sDefaultMethod, SbxCLASS_METHOD ); if( meth != NULL ) @@ -592,7 +592,7 @@ else if( xIndexAccess.is() ) sDefaultMethod = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getByIndex" ) ); - if ( sDefaultMethod.getLength() ) + if ( !sDefaultMethod.isEmpty() ) { SbxVariable* meth = pUnoObj->Find( sDefaultMethod, SbxCLASS_METHOD ); SbxVariableRef refTemp = meth; Index: basctl/source/dlged/dlgedobj.cxx =================================================================== --- basctl/source/dlged/dlgedobj.cxx (revision 1563353) +++ basctl/source/dlged/dlgedobj.cxx (working copy) @@ -518,7 +518,7 @@ Reference< container::XNameAccess > xNameAcc((GetDlgEdForm()->GetUnoControlModel()), UNO_QUERY); if ( xNameAcc.is() && xNameAcc->hasByName(aOldName) ) { - if ( !xNameAcc->hasByName(aNewName) && aNewName.getLength() != 0 ) + if ( !xNameAcc->hasByName(aNewName) && !aNewName.isEmpty() ) { // remove the control by the old name and insert the control by the new name in the container Reference< container::XNameContainer > xCont(xNameAcc, UNO_QUERY ); Index: basctl/source/basicide/scriptdocument.cxx =================================================================== --- basctl/source/basicide/scriptdocument.cxx (revision 1563353) +++ basctl/source/basicide/scriptdocument.cxx (working copy) @@ -1002,7 +1002,7 @@ } } - if ( aFileURL.getLength() ) + if ( !aFileURL.isEmpty() ) { ::osl::DirectoryItem aFileItem; ::osl::FileStatus aFileStatus( FileStatusMask_FileURL ); @@ -1164,7 +1164,7 @@ ScriptDocument ScriptDocument::getDocumentWithURLOrCaption( const ::rtl::OUString& _rUrlOrCaption ) { ScriptDocument aDocument( getApplicationScriptDocument() ); - if ( _rUrlOrCaption.getLength() == 0 ) + if ( _rUrlOrCaption.isEmpty() ) return aDocument; docs::Documents aDocuments; @@ -1521,7 +1521,7 @@ LibraryLocation ScriptDocument::getLibraryLocation( const ::rtl::OUString& _rLibName ) const { LibraryLocation eLocation = LIBRARY_LOCATION_UNKNOWN; - if ( _rLibName.getLength() ) + if ( !_rLibName.isEmpty() ) { if ( isDocument() ) { Index: basctl/source/basicide/localizationmgr.cxx =================================================================== --- basctl/source/basicide/localizationmgr.cxx (revision 1563353) +++ basctl/source/basicide/localizationmgr.cxx (working copy) @@ -183,7 +183,7 @@ aPureIdStr += aDot; aPureIdStr += aDialogName; aPureIdStr += aDot; - if( aCtrlName.getLength() ) + if( !aCtrlName.isEmpty() ) { aPureIdStr += aCtrlName; aPureIdStr += aDot; @@ -243,7 +243,7 @@ // Replace string by id, add id+string to StringResource if( eMode == SET_IDS ) { - bool bEscAlreadyExisting = (aPropStr.getLength() && aPropStr.getStr()[0] == '&' ); + bool bEscAlreadyExisting = (!aPropStr.isEmpty() && aPropStr.getStr()[0] == '&' ); if( bEscAlreadyExisting ) continue; @@ -436,7 +436,7 @@ for ( i = 0; i < nPropStringCount; ++i ) { ::rtl::OUString aPropStr = pPropStrings[i]; - bool bEscAlreadyExisting = (aPropStr.getLength() && aPropStr.getStr()[0] == '&' ); + bool bEscAlreadyExisting = (!aPropStr.isEmpty() && aPropStr.getStr()[0] == '&' ); if( bEscAlreadyExisting ) { pIdStrings[i] = aPropStr; Index: basctl/source/basicide/bastype2.cxx =================================================================== --- basctl/source/basicide/bastype2.cxx (revision 1563353) +++ basctl/source/basicide/bastype2.cxx (working copy) @@ -781,7 +781,7 @@ } } - if ( sFactoryURL.getLength() ) + if ( !sFactoryURL.isEmpty() ) { rImage = SvFileInformationManager::GetFileImage( INetURLObject( sFactoryURL ), sal_False /* small */, Index: basctl/source/basicide/baside2.cxx =================================================================== --- basctl/source/basicide/baside2.cxx (revision 1563353) +++ basctl/source/basicide/baside2.cxx (working copy) @@ -370,7 +370,7 @@ if ( !pMethod ) { if ( aDocument.isInVBAMode() ) - return ( BasicIDE::ChooseMacro( uno::Reference< frame::XModel >(), sal_False, rtl::OUString() ).getLength() > 0 ) ? sal_True : sal_False; + return ( BasicIDE::ChooseMacro( uno::Reference< frame::XModel >(), sal_False, rtl::OUString() ).isEmpty() == false ) ? sal_True : sal_False; else pMethod = (SbMethod*)xModule->Find( String( RTL_CONSTASCII_USTRINGPARAM( "Main" ) ), SbxCLASS_METHOD ); }