Index: cui/source/tabpages/tphatch.cxx =================================================================== --- cui/source/tabpages/tphatch.cxx (revision 1565575) +++ cui/source/tabpages/tphatch.cxx (working copy) @@ -816,7 +816,7 @@ { aFile.Append( maHatchingList->GetName() ); - if( !aFile.getExtension().getLength() ) + if( aFile.getExtension().isEmpty() ) aFile.SetExtension( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "soh" ) ) ); } Index: cui/source/tabpages/tplneend.cxx =================================================================== --- cui/source/tabpages/tplneend.cxx (revision 1565575) +++ cui/source/tabpages/tplneend.cxx (working copy) @@ -690,7 +690,7 @@ { aFile.Append( maLineEndList->GetName() ); - if( !aFile.getExtension().getLength() ) + if( aFile.getExtension().isEmpty() ) aFile.SetExtension( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "soe" ) ) ); } Index: cui/source/tabpages/numpages.cxx =================================================================== --- cui/source/tabpages/numpages.cxx (revision 1565575) +++ cui/source/tabpages/numpages.cxx (working copy) @@ -405,8 +405,8 @@ return 0; SvxNumSettings_ImplPtr _pSet = aNumSettingsArr.GetObject(nIdx); sal_Int16 eNewType = _pSet->nNumberType; - const sal_Unicode cLocalPrefix = _pSet->sPrefix.getLength() ? _pSet->sPrefix.getStr()[0] : 0; - const sal_Unicode cLocalSuffix = _pSet->sSuffix.getLength() ? _pSet->sSuffix.getStr()[0] : 0; + const sal_Unicode cLocalPrefix = !_pSet->sPrefix.isEmpty() ? _pSet->sPrefix.getStr()[0] : 0; + const sal_Unicode cLocalSuffix = !_pSet->sSuffix.isEmpty() ? _pSet->sSuffix.getStr()[0] : 0; sal_uInt16 nMask = 1; for(sal_uInt16 i = 0; i < pActNum->GetLevelCount(); i++) @@ -861,7 +861,7 @@ // #i93908# clear suffix for bullet lists aFmt.SetPrefix(::rtl::OUString()); aFmt.SetSuffix(::rtl::OUString()); - if( pLevelSettings->sBulletFont.getLength() && + if( !pLevelSettings->sBulletFont.isEmpty() && pLevelSettings->sBulletFont.compareTo( rActBulletFont.GetName())) { @@ -897,7 +897,7 @@ else aFmt.SetBulletFont( &rActBulletFont ); - aFmt.SetBulletChar( pLevelSettings->sBulletChar.getLength() + aFmt.SetBulletChar( !pLevelSettings->sBulletChar.isEmpty() ? pLevelSettings->sBulletChar.getStr()[0] : 0 ); aFmt.SetCharFmtName( sBulletCharFmtName ); Index: cui/source/tabpages/tplnedef.cxx =================================================================== --- cui/source/tabpages/tplnedef.cxx (revision 1565575) +++ cui/source/tabpages/tplnedef.cxx (working copy) @@ -889,7 +889,7 @@ { aFile.Append( maDashList->GetName() ); - if( !aFile.getExtension().getLength() ) + if( aFile.getExtension().isEmpty() ) aFile.SetExtension( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "sod" ) ) ); } Index: cui/source/tabpages/chardlg.cxx =================================================================== --- cui/source/tabpages/chardlg.cxx (revision 1565575) +++ cui/source/tabpages/chardlg.cxx (working copy) @@ -219,7 +219,7 @@ { const SfxStringItem& rItem = ( SfxStringItem& ) rSet.Get( nWhich ); ::rtl::OUString aString = rItem.GetValue(); - if( aString.getLength() != 0 ) + if( !aString.isEmpty() ) m_aPreviewWin.SetPreviewText( aString ); else m_aPreviewWin.SetFontNameAsPreviewText(); Index: cui/source/tabpages/tpgradnt.cxx =================================================================== --- cui/source/tabpages/tpgradnt.cxx (revision 1565575) +++ cui/source/tabpages/tpgradnt.cxx (working copy) @@ -765,7 +765,7 @@ { aFile.Append( maGradientList->GetName() ); - if( !aFile.getExtension().getLength() ) + if( aFile.getExtension().isEmpty() ) aFile.SetExtension( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "sog" ) ) ); } Index: cui/source/tabpages/tpbitmap.cxx =================================================================== --- cui/source/tabpages/tpbitmap.cxx (revision 1565575) +++ cui/source/tabpages/tpbitmap.cxx (working copy) @@ -940,7 +940,7 @@ { aFile.Append( maBitmapList->GetName() ); - if( !aFile.getExtension().getLength() ) + if( aFile.getExtension().isEmpty() ) aFile.SetExtension( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "sob" ) ) ); } Index: cui/source/tabpages/tpcolor.cxx =================================================================== --- cui/source/tabpages/tpcolor.cxx (revision 1565575) +++ cui/source/tabpages/tpcolor.cxx (working copy) @@ -903,7 +903,7 @@ { aFile.Append( maColorTab->GetName() ); - if( !aFile.getExtension().getLength() ) + if( aFile.getExtension().isEmpty() ) aFile.SetExtension( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "soc" ) ) ); } Index: cui/source/tabpages/autocdlg.cxx =================================================================== --- cui/source/tabpages/autocdlg.cxx (revision 1565575) +++ cui/source/tabpages/autocdlg.cxx (working copy) @@ -2742,7 +2742,7 @@ const rtl::OUString aSmartTagType = xRec->getSmartTagName(j); rtl::OUString aSmartTagCaption = rSmartTagMgr.GetSmartTagCaption( aSmartTagType, aLocale ); - if ( !aSmartTagCaption.getLength() ) + if ( aSmartTagCaption.isEmpty() ) aSmartTagCaption = aSmartTagType; const rtl::OUString aLBEntry = aSmartTagCaption + Index: cui/source/inc/acccfg.hxx =================================================================== --- cui/source/inc/acccfg.hxx (revision 1565575) +++ cui/source/inc/acccfg.hxx (working copy) @@ -109,7 +109,7 @@ sal_Bool isConfigured() const { - return (m_nKeyPos>-1 && m_nListPos>-1 && m_sCommand.getLength()); + return ( m_nKeyPos>-1 && m_nListPos>-1 && !m_sCommand.isEmpty() ); } sal_Int32 m_nKeyPos; Index: cui/source/options/optcolor.cxx =================================================================== --- cui/source/options/optcolor.cxx (revision 1565575) +++ cui/source/options/optcolor.cxx (working copy) @@ -1563,7 +1563,7 @@ if(!bFillItemSetCalled && aColorSchemeLB.GetSavedValue() != aColorSchemeLB.GetSelectEntryPos()) { rtl::OUString sOldScheme = aColorSchemeLB.GetEntry(aColorSchemeLB.GetSavedValue()); - if(sOldScheme.getLength()) + if( !sOldScheme.isEmpty() ) { pColorConfig->SetCurrentSchemeName(sOldScheme); pExtColorConfig->SetCurrentSchemeName(sOldScheme); Index: cui/source/options/optimprove.cxx =================================================================== --- cui/source/options/optimprove.cxx (revision 1565575) +++ cui/source/options/optimprove.cxx (working copy) @@ -138,7 +138,7 @@ { ::rtl::OUString sURL( pHyperlinkImage->GetURL() ); - if ( sURL.getLength() > 0 ) + if ( !sURL.isEmpty() ) { try { Index: cui/source/options/optimprove2.cxx =================================================================== --- cui/source/options/optimprove2.cxx (revision 1565575) +++ cui/source/options/optimprove2.cxx (working copy) @@ -107,7 +107,7 @@ { ::rtl::OUString sURL( m_aInfoFI.GetURL() ); - if ( sURL.getLength() > 0 ) + if ( !sURL.isEmpty() ) { try { Index: cui/source/options/optlingu.cxx =================================================================== --- cui/source/options/optlingu.cxx (revision 1565575) +++ cui/source/options/optlingu.cxx (working copy) @@ -144,7 +144,7 @@ static void lcl_OpenURL( const ::rtl::OUString& rURL ) { - if ( rURL.getLength() > 0 ) + if ( !rURL.isEmpty() ) { try { @@ -641,7 +641,7 @@ case TYPE_GRAMMAR : aImplName = rInfo.sGrammarImplName; break; } - if (aImplName.getLength() && (lcl_SeqGetIndex( aRes, aImplName) == -1)) // name not yet added + if ( !aImplName.isEmpty() && (lcl_SeqGetIndex( aRes, aImplName) == -1) ) // name not yet added { DBG_ASSERT( nIdx < aRes.getLength(), "index out of range" ); if (nIdx < aRes.getLength()) @@ -722,7 +722,7 @@ if(rToAdd.xSpell.is()) { DBG_ASSERT( !pEntry->xSpell.is() && - pEntry->sSpellImplName.getLength() == 0, + pEntry->sSpellImplName.isEmpty(), "merge conflict" ); pEntry->sSpellImplName = rToAdd.sSpellImplName; pEntry->xSpell = rToAdd.xSpell; @@ -730,7 +730,7 @@ if(rToAdd.xGrammar.is()) { DBG_ASSERT( !pEntry->xGrammar.is() && - pEntry->sGrammarImplName.getLength() == 0, + pEntry->sGrammarImplName.isEmpty(), "merge conflict" ); pEntry->sGrammarImplName = rToAdd.sGrammarImplName; pEntry->xGrammar = rToAdd.xGrammar; @@ -738,7 +738,7 @@ if(rToAdd.xHyph.is()) { DBG_ASSERT( !pEntry->xHyph.is() && - pEntry->sHyphImplName.getLength() == 0, + pEntry->sHyphImplName.isEmpty(), "merge conflict" ); pEntry->sHyphImplName = rToAdd.sHyphImplName; pEntry->xHyph = rToAdd.xHyph; @@ -746,7 +746,7 @@ if(rToAdd.xThes.is()) { DBG_ASSERT( !pEntry->xThes.is() && - pEntry->sThesImplName.getLength() == 0, + pEntry->sThesImplName.isEmpty(), "merge conflict" ); pEntry->sThesImplName = rToAdd.sThesImplName; pEntry->xThes = rToAdd.xThes; @@ -955,7 +955,7 @@ if (pEntry && !pEntry->bConfigured) { const OUString &rSrvcImplName = pConfiguredServices[n]; - if (rSrvcImplName.getLength() && + if (!rSrvcImplName.isEmpty() && (pEntry->sSpellImplName == rSrvcImplName || pEntry->sGrammarImplName == rSrvcImplName || pEntry->sHyphImplName == rSrvcImplName || @@ -1003,7 +1003,7 @@ void SvxLinguData_Impl::Reconfigure( const OUString &rDisplayName, sal_Bool bEnable ) { - DBG_ASSERT( rDisplayName.getLength(), "empty DisplayName" ); + DBG_ASSERT( !rDisplayName.isEmpty(), "empty DisplayName" ); ServiceInfo_Impl *pInfo = 0; ServiceInfo_Impl *pTmp = 0; @@ -2326,7 +2326,7 @@ pInfo->xSpell->hasLocale( aCurLocale ); aImplName = pInfo->sSpellImplName; } - if (aImplName.getLength() && bIsSuppLang) + if ( !aImplName.isEmpty() && bIsSuppLang ) { String aTxt( pInfo->sDisplayName ); SvLBoxEntry* pNewEntry = CreateEntry( aTxt, CBCOL_FIRST ); @@ -2370,7 +2370,7 @@ pInfo->xGrammar->hasLocale( aCurLocale ); aImplName = pInfo->sGrammarImplName; } - if (aImplName.getLength() && bIsSuppLang) + if ( !aImplName.isEmpty() && bIsSuppLang ) { String aTxt( pInfo->sDisplayName ); SvLBoxEntry* pNewEntry = CreateEntry( aTxt, CBCOL_FIRST ); @@ -2414,7 +2414,7 @@ pInfo->xHyph->hasLocale( aCurLocale ); aImplName = pInfo->sHyphImplName; } - if (aImplName.getLength() && bIsSuppLang) + if ( !aImplName.isEmpty() && bIsSuppLang ) { String aTxt( pInfo->sDisplayName ); SvLBoxEntry* pNewEntry = CreateEntry( aTxt, CBCOL_FIRST ); @@ -2458,7 +2458,7 @@ pInfo->xThes->hasLocale( aCurLocale ); aImplName = pInfo->sThesImplName; } - if (aImplName.getLength() && bIsSuppLang) + if ( !aImplName.isEmpty() && bIsSuppLang ) { String aTxt( pInfo->sDisplayName ); SvLBoxEntry* pNewEntry = CreateEntry( aTxt, CBCOL_FIRST ); Index: cui/source/options/optgdlg.cxx =================================================================== --- cui/source/options/optgdlg.cxx (revision 1565575) +++ cui/source/options/optgdlg.cxx (working copy) @@ -1266,7 +1266,7 @@ if (theNameAccess->hasByName(sUserLocaleKey)) theNameAccess->getByName(sUserLocaleKey) >>= m_sUserLocaleValue; // select the user specified locale in the listbox - if (m_sUserLocaleValue.getLength() > 0) + if ( !m_sUserLocaleValue.isEmpty() ) { sal_Int32 d = 0; for (sal_uInt16 i=0; i < aUserInterfaceLB.GetEntryCount(); i++) @@ -1470,7 +1470,7 @@ } OUString sLang = pLangConfig->aSysLocaleOptions.GetLocaleConfigString(); - LanguageType eOldLocale = (sLang.getLength() ? + LanguageType eOldLocale = (!sLang.isEmpty() ? lcl_LangStringToLangType( sLang ) : LANGUAGE_SYSTEM); LanguageType eNewLocale = aLocaleSettingLB.GetSelectLanguage(); if ( eOldLocale != eNewLocale ) @@ -1630,7 +1630,7 @@ void OfaLanguagesTabPage::Reset( const SfxItemSet& rSet ) { OUString sLang = pLangConfig->aSysLocaleOptions.GetLocaleConfigString(); - if ( sLang.getLength() ) + if ( !sLang.isEmpty() ) aLocaleSettingLB.SelectLanguage(lcl_LangStringToLangType(sLang)); else aLocaleSettingLB.SelectLanguage( LANGUAGE_SYSTEM ); @@ -1653,7 +1653,7 @@ LanguageType eLang; const NfCurrencyEntry* pCurr = NULL; sLang = pLangConfig->aSysLocaleOptions.GetCurrencyConfigString(); - if ( sLang.getLength() ) + if ( !sLang.isEmpty() ) { SvtSysLocaleOptions::GetCurrencyAbbrevAndLanguage( aAbbrev, eLang, sLang ); pCurr = SvNumberFormatter::GetCurrencyEntry( aAbbrev, eLang ); Index: cui/source/options/optsave.cxx =================================================================== --- cui/source/options/optsave.cxx (revision 1565575) +++ cui/source/options/optsave.cxx (working copy) @@ -425,37 +425,37 @@ } SvtModuleOptions aModuleOpt; - if(pImpl->aDefaultArr[APP_MATH].getLength() && + if( !pImpl->aDefaultArr[APP_MATH].isEmpty() && pImpl->aDefaultArr[APP_MATH] != aModuleOpt.GetFactoryDefaultFilter(SvtModuleOptions::E_MATH) && AcceptFilter( APP_MATH )) aModuleOpt.SetFactoryDefaultFilter(SvtModuleOptions::E_MATH, pImpl->aDefaultArr[APP_MATH]); - if( pImpl->aDefaultArr[APP_DRAW].getLength() && + if( !pImpl->aDefaultArr[APP_DRAW].isEmpty() && pImpl->aDefaultArr[APP_DRAW] != aModuleOpt.GetFactoryDefaultFilter(SvtModuleOptions::E_DRAW) && AcceptFilter( APP_DRAW )) aModuleOpt.SetFactoryDefaultFilter(SvtModuleOptions::E_DRAW, pImpl->aDefaultArr[APP_DRAW]); - if(pImpl->aDefaultArr[APP_IMPRESS].getLength() && + if( !pImpl->aDefaultArr[APP_IMPRESS].isEmpty() && pImpl->aDefaultArr[APP_IMPRESS] != aModuleOpt.GetFactoryDefaultFilter(SvtModuleOptions::E_IMPRESS)&& AcceptFilter( APP_IMPRESS )) aModuleOpt.SetFactoryDefaultFilter(SvtModuleOptions::E_IMPRESS, pImpl->aDefaultArr[APP_IMPRESS]); - if(pImpl->aDefaultArr[APP_CALC].getLength() && + if( !pImpl->aDefaultArr[APP_CALC].isEmpty() && pImpl->aDefaultArr[APP_CALC] != aModuleOpt.GetFactoryDefaultFilter(SvtModuleOptions::E_CALC)&& AcceptFilter( APP_CALC )) aModuleOpt.SetFactoryDefaultFilter(SvtModuleOptions::E_CALC, pImpl->aDefaultArr[APP_CALC]); - if(pImpl->aDefaultArr[APP_WRITER].getLength() && + if( !pImpl->aDefaultArr[APP_WRITER].isEmpty() && pImpl->aDefaultArr[APP_WRITER] != aModuleOpt.GetFactoryDefaultFilter(SvtModuleOptions::E_WRITER)&& AcceptFilter( APP_WRITER)) aModuleOpt.SetFactoryDefaultFilter(SvtModuleOptions::E_WRITER, pImpl->aDefaultArr[APP_WRITER]); - if(pImpl->aDefaultArr[APP_WRITER_WEB].getLength() && + if( !pImpl->aDefaultArr[APP_WRITER_WEB].isEmpty() && pImpl->aDefaultArr[APP_WRITER_WEB] != aModuleOpt.GetFactoryDefaultFilter(SvtModuleOptions::E_WRITERWEB)&& AcceptFilter( APP_WRITER_WEB )) aModuleOpt.SetFactoryDefaultFilter(SvtModuleOptions::E_WRITERWEB, pImpl->aDefaultArr[APP_WRITER_WEB]); - if(pImpl->aDefaultArr[APP_WRITER_GLOBAL].getLength() && + if( !pImpl->aDefaultArr[APP_WRITER_GLOBAL].isEmpty() && pImpl->aDefaultArr[APP_WRITER_GLOBAL] != aModuleOpt.GetFactoryDefaultFilter(SvtModuleOptions::E_WRITERGLOBAL)&& AcceptFilter( APP_WRITER_GLOBAL )) aModuleOpt.SetFactoryDefaultFilter(SvtModuleOptions::E_WRITERGLOBAL, pImpl->aDefaultArr[APP_WRITER_GLOBAL]); @@ -551,7 +551,7 @@ { SequenceAsHashMap aFilter(xList->nextElement()); OUString sFilter = aFilter.getUnpackedValueOrDefault(OUString::createFromAscii("Name"),OUString()); - if (sFilter.getLength()) + if ( !sFilter.isEmpty() ) { sal_Int32 nFlags = aFilter.getUnpackedValueOrDefault(OUString::createFromAscii("Flags"),sal_Int32()); lList.push_back(sFilter); @@ -666,7 +666,7 @@ if( rName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "UIName" ) ) ) { OUString sUIName; - if ( ( pPropVal->Value >>= sUIName ) && sUIName.getLength() ) + if ( ( pPropVal->Value >>= sUIName ) && !sUIName.isEmpty() ) return sUIName; } else if( rName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Name" ) ) ) @@ -718,7 +718,7 @@ if(pFilters[i] == pImpl->aDefaultArr[nData]) sSelect = pUIFilters[i]; } - if(sSelect.getLength()) + if( !sSelect.isEmpty() ) aSaveAsLB.SelectEntry(sSelect); aSaveAsFI.Show(pImpl->aDefaultReadonlyArr[nData]); aSaveAsFT.Enable(!pImpl->aDefaultReadonlyArr[nData]); Index: cui/source/options/treeopt.cxx =================================================================== --- cui/source/options/treeopt.cxx (revision 1565575) +++ cui/source/options/treeopt.cxx (working copy) @@ -605,7 +605,7 @@ { FreeResource(); - bIsFromExtensionManager = ( rExtensionId.getLength() > 0 ); + bIsFromExtensionManager = ( !rExtensionId.isEmpty() ); InitTreeAndHandler(); LoadExtensionOptions( rExtensionId ); ResizeTreeLB(); @@ -1304,7 +1304,7 @@ else { OptionsGroupInfo* pTGInfo = (OptionsGroupInfo *)pEntry->GetUserData(); - if ( pTGInfo->m_sPageURL.getLength() == 0 ) + if ( pTGInfo->m_sPageURL.isEmpty() ) { bool bHighContrast = GetSettings().GetStyleSettings().GetHighContrastMode(); ImageList* pImgLst = bHighContrast ? &aPageImagesHC : &aPageImages; @@ -1468,7 +1468,7 @@ sal_Bool bSSOEnabled = ( theOfflineValue == theDefaultOfflineValue && - ( theServerTypeValue.getLength() == 0 || + ( theServerTypeValue.isEmpty() || theServerTypeValue == rtl::OUString::createFromAscii( "uno" ) ) && theBackendServiceTypeValue == rtl::OUString::createFromAscii( @@ -2284,7 +2284,7 @@ ::comphelper::ConfigurationHelper::E_READONLY ), UNO_QUERY ); DBG_ASSERT( xRoot.is(), "OfaTreeOptionsDialog::LoadExtensionOptions(): no config" ); // when called by Tools - Options then load nodes of active module - if ( rExtensionId.getLength() == 0 ) + if ( rExtensionId.isEmpty() ) pModule = LoadModule( GetModuleIdentifier( xMSFac, Reference< XFrame >() ), xRoot ); VectorOfNodes aNodeList; @@ -2427,15 +2427,15 @@ xNodeAccess->getByName( C2U("GroupId") ) >>= sGroupId; xNodeAccess->getByName( C2U("GroupIndex") ) >>= nGroupIndex; - if ( sLabel.getLength() == 0 ) + if ( sLabel.isEmpty() ) sLabel = sGroupName; - String sTemp = getGroupName( sLabel, rExtensionId.getLength() > 0 ); + String sTemp = getGroupName( sLabel, !rExtensionId.isEmpty() ); if ( sTemp.Len() > 0 ) sLabel = sTemp; OptionsNode* pNode = new OptionsNode( sNodeId, sLabel, sPageURL, bAllModules, sGroupId, nGroupIndex ); - if ( !rExtensionId.getLength() && !isNodeActive( pNode, pModule ) ) + if ( rExtensionId.isEmpty() && !isNodeActive( pNode, pModule ) ) { delete pNode; continue; @@ -2463,12 +2463,12 @@ xLeaveAccess->getByName( C2U("GroupId") ) >>= sLeafGrpId; xLeaveAccess->getByName( C2U("GroupIndex") ) >>= nLeafGrpIdx; - if ( !rExtensionId.getLength() || sId == rExtensionId ) + if ( rExtensionId.isEmpty() || sId == rExtensionId ) { OptionsLeaf* pLeaf = new OptionsLeaf( sId, sLeafLabel, sLeafURL, sEventHdl, sLeafGrpId, nLeafGrpIdx ); - if ( sLeafGrpId.getLength() > 0 ) + if ( !sLeafGrpId.isEmpty() ) { bool bAlreadyOpened = false; if ( pNode->m_aGroupedLeaves.size() > 0 ) @@ -2572,7 +2572,7 @@ { sal_uInt16 nNodeGrpId = getGroupNodeId( pNode->m_sId ); nGrpId = pDlg->AddGroup( pNode->m_sLabel, NULL, NULL, nNodeGrpId ); - if ( pNode->m_sPageURL.getLength() > 0 ) + if ( !pNode->m_sPageURL.isEmpty() ) { SvLBoxEntry* pGrpEntry = rTreeLB.GetEntry( 0, nGrpId ); DBG_ASSERT( pGrpEntry, "OfaTreeOptionsDialog::InsertNodes(): no group" ); @@ -2687,7 +2687,7 @@ { try { - bool bWithHandler = ( m_sEventHdl.getLength() > 0 ); + bool bWithHandler = ( !m_sEventHdl.isEmpty() ); if ( bWithHandler ) { Reference < XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() ); @@ -2761,7 +2761,7 @@ Size aSize = GetSizePixel(); m_xPage->setPosSize( aPos.X() + 1, aPos.Y() + 1, aSize.Width() - 2, aSize.Height() - 2, awt::PosSize::POSSIZE ); - if ( m_sEventHdl.getLength() > 0 ) + if ( !m_sEventHdl.isEmpty() ) DispatchAction( C2U("initialize") ); } } Index: cui/source/options/dbregister.cxx =================================================================== --- cui/source/options/dbregister.cxx (revision 1565575) +++ cui/source/options/dbregister.cxx (working copy) @@ -208,7 +208,7 @@ { SvLBoxEntry* pEntry = pPathBox->GetEntry(i); DatabaseRegistration* pRegistration = static_cast< DatabaseRegistration* >( pEntry->GetUserData() ); - if ( pRegistration && pRegistration->sLocation.getLength() ) + if ( pRegistration && !pRegistration->sLocation.isEmpty() ) { ::rtl::OUString sName( pPathBox->GetEntryText( pEntry, 0 ) ); OFileNotation aTransformer( pRegistration->sLocation ); Index: cui/source/customize/acccfg.cxx =================================================================== --- cui/source/customize/acccfg.cxx (revision 1565575) +++ cui/source/customize/acccfg.cxx (working copy) @@ -968,7 +968,7 @@ try { - if (sCommand.getLength()) + if ( !sCommand.isEmpty() ) xAccMgr->setKeyEvent(aAWTKey, sCommand); else xAccMgr->removeKeyEvent(aAWTKey); @@ -1186,7 +1186,7 @@ if ( ERRCODE_NONE == m_pFileDlg->GetError() ) sCfgName = m_pFileDlg->GetPath(); - if ( !sCfgName.getLength() ) + if ( sCfgName.isEmpty() ) return 0; GetTabDialog()->EnterWait(); @@ -1270,7 +1270,7 @@ if ( ERRCODE_NONE == m_pFileDlg->GetError() ) sCfgName = m_pFileDlg->GetPath(); - if ( !sCfgName.getLength() ) + if ( sCfgName.isEmpty() ) return 0; GetTabDialog()->EnterWait(); @@ -1311,7 +1311,7 @@ // set the correct media type if the storage was new created ::rtl::OUString sMediaType; xUIConfigProps->getPropertyValue(MEDIATYPE_PROPNAME) >>= sMediaType; - if (!sMediaType.getLength()) + if ( sMediaType.isEmpty() ) xUIConfigProps->setPropertyValue(MEDIATYPE_PROPNAME, css::uno::makeAny(MEDIATYPE_UICONFIG)); xCfgMgr = css::uno::Reference< css::ui::XUIConfigurationManager >(m_xSMGR->createInstance(SERVICE_UICONFIGMGR), css::uno::UNO_QUERY_THROW); Index: cui/source/customize/selector.cxx =================================================================== --- cui/source/customize/selector.cxx (revision 1565575) +++ cui/source/customize/selector.cxx (working copy) @@ -480,7 +480,7 @@ Reference< container::XNameAccess > xModuleCategories; if ( xAllCategories.is() ) { - if ( aModuleId.getLength() != 0 ) + if ( !aModuleId.isEmpty() ) { try { @@ -638,7 +638,7 @@ } } } - if( factoryURL.getLength() > 0 ) + if( !factoryURL.isEmpty() ) { if( bHighContrast == BMP_COLOR_NORMAL ) aImage = SvFileInformationManager::GetFileImage( @@ -785,7 +785,7 @@ { } - if ( aLabel.getLength() == 0 ) + if ( aLabel.isEmpty() ) { aLabel = commands[i].Command; } @@ -1105,7 +1105,7 @@ SvxScriptSelectorDialog::UpdateUI() { OUString url = GetScriptURL(); - if ( url != NULL && url.getLength() != 0 ) + if ( url != NULL && !url.isEmpty() ) { String rMessage = aCommands.GetHelpText( aCommands.FirstSelected() ); Index: cui/source/customize/macropg.cxx =================================================================== --- cui/source/customize/macropg.cxx (revision 1565575) +++ cui/source/customize/macropg.cxx (working copy) @@ -813,7 +813,7 @@ Any aReturn; ::comphelper::NamedValueCollection aProps; - if ( rAssignedEvent.first.getLength() && rAssignedEvent.second.getLength() ) + if ( !rAssignedEvent.first.isEmpty() && !rAssignedEvent.second.isEmpty() ) { aProps.put( "EventType", rAssignedEvent.first ); aProps.put( "Script", rAssignedEvent.second ); @@ -909,7 +909,7 @@ { ::rtl::OUString aMethodName = maMethodEdit.GetText(); maURL = ::rtl::OUString(); - if( aMethodName.getLength() ) + if( !aMethodName.isEmpty() ) { maURL = aVndSunStarUNO; maURL += aMethodName; @@ -931,7 +931,7 @@ maOKButton.SetClickHdl(LINK(this, AssignComponentDialog, ButtonHandler)); ::rtl::OUString aMethodName; - if( maURL.getLength() ) + if( !maURL.isEmpty() ) { sal_Int32 nIndex = maURL.indexOf( aVndSunStarUNO ); if( nIndex == 0 ) Index: cui/source/customize/cfgutil.cxx =================================================================== --- cui/source/customize/cfgutil.cxx (revision 1565575) +++ cui/source/customize/cfgutil.cxx (working copy) @@ -143,7 +143,7 @@ if (sArg.indexOf(CMDURL_FPART_ONLY) == 0) aStyle.sFamily = sArg.copy(LEN_FPART, sArg.getLength()-LEN_FPART); - if (aStyle.sFamily.getLength() && aStyle.sStyle.getLength()) + if ( !aStyle.sFamily.isEmpty() && !aStyle.sStyle.isEmpty()) return sal_True; return sal_False; @@ -176,7 +176,7 @@ catch(const css::uno::Exception&) { aStyle.sLabel = ::rtl::OUString(); } - if (!aStyle.sLabel.getLength()) + if ( aStyle.sLabel.isEmpty() ) { aStyle.sLabel = aStyle.sCommand; /* @@ -549,7 +549,7 @@ try { m_xModuleCategoryInfo->getByName(sGroupID) >>= sGroupName; - if (!sGroupName.getLength()) + if ( sGroupName.isEmpty() ) continue; } catch(const css::container::NoSuchElementException&) @@ -864,7 +864,7 @@ } } } - if( factoryURL.getLength() > 0 ) + if( !factoryURL.isEmpty() ) { if( bHighContrast == BMP_COLOR_NORMAL ) aImage = SvFileInformationManager::GetFileImage( @@ -957,7 +957,7 @@ { sUIName = ::rtl::OUString(); } // fallback for missing UINames !? - if (!sUIName.getLength()) + if ( sUIName.isEmpty() ) { sUIName = sCommand; /* Index: cui/source/customize/cfg.cxx =================================================================== --- cui/source/customize/cfg.cxx (revision 1565575) +++ cui/source/customize/cfg.cxx (working copy) @@ -506,7 +506,7 @@ } } - if ( aModuleUIName.getLength() == 0 ) + if ( aModuleUIName.isEmpty() ) aModuleUIName = GetModuleName( aModuleId ); return aModuleUIName; @@ -638,7 +638,7 @@ // as an empty string. // It will be initialised again later using the command to label map. aPropSeq[2].Name = aDescriptorLabel; - if ( pEntry->HasChangedName() == sal_False && pEntry->GetCommand().getLength() ) + if ( pEntry->HasChangedName() == sal_False && !pEntry->GetCommand().isEmpty() ) { sal_Bool isDefaultName = sal_False; try @@ -719,7 +719,7 @@ // as an empty string. // It will be initialised again later using the command to label map. aPropSeq[2].Name = aDescriptorLabel; - if ( pEntry->HasChangedName() == sal_False && pEntry->GetCommand().getLength() ) + if ( pEntry->HasChangedName() == sal_False && !pEntry->GetCommand().isEmpty() ) { sal_Bool isDefaultName = sal_False; try @@ -806,7 +806,7 @@ { ::rtl::OUString sModuleId = xMM->identify(xFrame); if ( - ( sModuleId.getLength() ) && + ( !sModuleId.isEmpty() ) && (!sModuleId.equals(MODULEID_STARTMODULE)) ) return sal_True; @@ -1183,7 +1183,7 @@ // If custom label not set retrieve it from the command // to info service - if ( aLabel.equals( OUString() ) ) + if ( aLabel.isEmpty() ) { uno::Sequence< beans::PropertyValue > aPropSeq; if ( a >>= aPropSeq ) @@ -1211,7 +1211,7 @@ OUString subMenuTitle( rBaseTitle ); - if ( subMenuTitle.getLength() != 0 ) + if ( !subMenuTitle.isEmpty() ) { subMenuTitle += OUString::createFromAscii(pMenuSeparatorStr); @@ -1785,7 +1785,7 @@ // if an item to select has been passed in (eg. the ResourceURL for a // toolbar) then try to select the SaveInData entry that has that item bool bURLToSelectFound = sal_False; - if ( m_aURLToSelect.getLength() != 0 ) + if ( !m_aURLToSelect.isEmpty() ) { if ( pDocData != NULL && pDocData->HasURL( m_aURLToSelect ) ) { @@ -3042,9 +3042,9 @@ const OUString& SvxConfigEntry::GetHelpText() { - if ( aHelpText.getLength() == 0 ) + if ( aHelpText.isEmpty() ) { - if ( aCommand.getLength() ) + if ( !aCommand.isEmpty() ) { aHelpText = Application::GetHelp()->GetHelpText( aCommand, NULL ); } @@ -3714,7 +3714,7 @@ ReloadTopLevelListBox(); sal_uInt16 nPos = 0; - if ( m_aURLToSelect.getLength() != 0 ) + if ( !m_aURLToSelect.isEmpty() ) { for ( sal_uInt16 i = 0 ; i < aTopLevelListBox.GetEntryCount(); i++ ) { @@ -4014,12 +4014,12 @@ uno::Reference< container::XIndexAccess > xToolbarSettings = GetConfigManager()->getSettings( url, sal_False ); - if ( uiname.getLength() == 0 ) + if ( uiname.isEmpty() ) { // try to get the name from m_xPersistentWindowState uiname = GetSystemUIName( url ); - if ( uiname.getLength() == 0 ) + if ( uiname.isEmpty() ) { uiname = systemname; } @@ -4102,12 +4102,12 @@ uno::Reference< container::XIndexAccess > xToolbarSettings = xParentCfgMgr->getSettings( url, sal_False ); - if ( uiname.getLength() == 0 ) + if ( uiname.isEmpty() ) { // try to get the name from m_xPersistentWindowState uiname = GetSystemUIName( url ); - if ( uiname.getLength() == 0 ) + if ( uiname.isEmpty() ) { uiname = systemname; } @@ -4508,7 +4508,7 @@ // If custom label not set retrieve it from the command // to info service - if ( aLabel.equals( OUString() ) ) + if ( aLabel.isEmpty() ) { uno::Sequence< beans::PropertyValue > aPropSeq; if ( a >>= aPropSeq ) Index: cui/source/dialogs/hldocntp.cxx =================================================================== --- cui/source/dialogs/hldocntp.cxx (revision 1565575) +++ cui/source/dialogs/hldocntp.cxx (working copy) @@ -204,7 +204,7 @@ continue; // Insert into listbox - if ( aDocumentUrl.getLength() ) + if ( !aDocumentUrl.isEmpty() ) { if ( aDocumentUrl.equalsAscii( "private:factory/simpress?slot=6686" ) ) // SJ: #106216# do not start aDocumentUrl = String( RTL_CONSTASCII_USTRINGPARAM( "private:factory/simpress" ) ); // the AutoPilot for impress @@ -462,7 +462,7 @@ INetURLObject aNewURL( aStrTmp ); - if( aStrName.Len() > 0 && aNewURL.getExtension().getLength() > 0 && + if( aStrName.Len() > 0 && !aNewURL.getExtension().isEmpty() && maLbDocTypes.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND ) { // get private-url Index: cui/source/dialogs/colorpicker.cxx =================================================================== --- cui/source/dialogs/colorpicker.cxx (revision 1565575) +++ cui/source/dialogs/colorpicker.cxx (working copy) @@ -297,7 +297,7 @@ ::rtl::OUString aText; aData >>= aText; - if( aText.getLength() && aText.matchAsciiL( "#", 1, 0 ) ) + if( !aText.isEmpty() && aText.matchAsciiL( "#", 1, 0 ) ) aText = aText.copy(1); if( aText.getLength() > 6 ) Index: cui/source/dialogs/insdlg.cxx =================================================================== --- cui/source/dialogs/insdlg.cxx (revision 1565575) +++ cui/source/dialogs/insdlg.cxx (working copy) @@ -928,7 +928,7 @@ aURL = aObj.GetMainURL( INetURLObject::NO_DECODE ); } - if ( !m_xObj.is() && aURL.getLength() ) + if ( !m_xObj.is() && !aURL.isEmpty() ) { // create the object ::rtl::OUString aName; Index: cui/source/dialogs/about.cxx =================================================================== --- cui/source/dialogs/about.cxx (revision 1565575) +++ cui/source/dialogs/about.cxx (working copy) @@ -318,7 +318,7 @@ } else { #ifdef COPYRIGHT_YEAR const rtl::OUString sDefYear( RTL_CONSTASCII_USTRINGPARAM( STRINGIFY( COPYRIGHT_YEAR ) ) ); - if ( sDefYear.getLength() > 0 ) + if ( !sDefYear.isEmpty() ) { sYear = sDefYear; } @@ -487,17 +487,17 @@ // Get buildid from version[rc|.ini] rtl::OUString sBuildId( utl::Bootstrap::getBuildIdData( sDefault ) ); - OSL_ENSURE( sBuildId.getLength() > 0, "No BUILDID in bootstrap file" ); + OSL_ENSURE( !sBuildId.isEmpty(), "No BUILDID in bootstrap file" ); rtl::OUStringBuffer sBuildIdBuff( sBuildId ); // Get ProductSource from version[rc|.ini] rtl::OUString sProductSource( utl::Bootstrap::getProductSource( sDefault ) ); - OSL_ENSURE( sProductSource.getLength() > 0, "No ProductSource in bootstrap file" ); + OSL_ENSURE( !sProductSource.isEmpty(), "No ProductSource in bootstrap file" ); // the product source is something like "AOO340", // while the build id is something like "340m1(Build:9590)" // For better readability, strip the duplicate ProductMajor ("340"). - if ( sProductSource.getLength() ) + if ( !sProductSource.isEmpty() ) { bool bMatchingUPD = ( sProductSource.getLength() >= 3 ) @@ -521,7 +521,7 @@ rtl::OUStringBuffer aBuildString( GetBuildId() ); rtl::OUString sRevision( utl::Bootstrap::getRevisionInfo() ); - if ( sRevision.getLength() > 0 ) + if ( !sRevision.isEmpty() ) { aBuildString.appendAscii( RTL_CONSTASCII_STRINGPARAM( " - Rev. " ) ); aBuildString.append( sRevision ); @@ -529,7 +529,7 @@ #ifdef BUILD_VER_STRING rtl::OUString sBuildVer( RTL_CONSTASCII_USTRINGPARAM( STRINGIFY( BUILD_VER_STRING ) ) ); - if ( sBuildVer.getLength() > 0 ) + if ( !sBuildVer.isEmpty() ) { aBuildString.append( sal_Unicode( '\n' ) ); aBuildString.append( sBuildVer ); @@ -570,7 +570,7 @@ IMPL_LINK ( AboutDialog, OpenLinkHdl_Impl, svt::FixedHyperlink*, EMPTYARG ) { ::rtl::OUString sURL( maCreditsLink.GetURL() ); - if ( sURL.getLength() > 0 ) + if ( !sURL.isEmpty() ) { try { Index: cui/source/dialogs/thesdlg.cxx =================================================================== --- cui/source/dialogs/thesdlg.cxx (revision 1565575) +++ cui/source/dialogs/thesdlg.cxx (working copy) @@ -337,7 +337,7 @@ xThesaurus->queryMeanings( rTerm, rLocale, rProperties ) ); // text with '.' at the end? - if (0 == aMeanings.getLength() && rTerm.getLength() && + if (0 == aMeanings.getLength() && !rTerm.isEmpty() && rTerm.getStr()[ rTerm.getLength() - 1 ] == '.') { // try again without trailing '.' chars. It may be a word at the @@ -375,7 +375,7 @@ uno::Sequence< OUString > aSynonyms( pMeanings[i]->querySynonyms() ); const sal_Int32 nSynonyms = aSynonyms.getLength(); const OUString *pSynonyms = aSynonyms.getConstArray(); - DBG_ASSERT( rMeaningTxt.getLength() > 0, "meaning with empty text" ); + DBG_ASSERT( !rMeaningTxt.isEmpty(), "meaning with empty text" ); DBG_ASSERT( nSynonyms > 0, "meaning without synonym" ); m_pAlternativesCT->AddEntry( i + 1, rMeaningTxt, true ); @@ -434,7 +434,7 @@ String aText( aWordCB.GetText() ); aLookUpText = OUString( aText ); - if (aLookUpText.getLength() > 0 && + if ( !aLookUpText.isEmpty() && (aLookUpHistory.size() == 0 || aLookUpText != aLookUpHistory.top())) aLookUpHistory.push( aLookUpText ); @@ -579,7 +579,7 @@ Image aImage; String sThesImplName( lcl_GetThesImplName( SvxCreateLocale( nLookUpLanguage ) ) ); OUString aThesDialogImageUrl( aCfg.GetThesaurusDialogImage( sThesImplName, bHC ) ); - if (sThesImplName.Len() > 0 && aThesDialogImageUrl.getLength() > 0) + if ( sThesImplName.Len() > 0 && !aThesDialogImageUrl.isEmpty() ) aImage = Image( lcl_GetImageFromPngUrl( aThesDialogImageUrl ) ); else aImage = bHC ? aVendorDefaultImageHC : aVendorDefaultImage; Index: cui/source/dialogs/hltpbase.cxx =================================================================== --- cui/source/dialogs/hltpbase.cxx (revision 1565575) +++ cui/source/dialogs/hltpbase.cxx (working copy) @@ -649,7 +649,7 @@ { sal_Bool bRet = sal_False; - if( rURL.GetFull().getLength() > 0 ) + if( !rURL.GetFull().isEmpty() ) { try { @@ -657,7 +657,7 @@ ::rtl::OUString aTitle; aCnt.getPropertyValue( ::rtl::OUString::createFromAscii( "Title" ) ) >>= aTitle; - bRet = ( aTitle.getLength() > 0 ); + bRet = ( !aTitle.isEmpty() ); } catch( ... ) { Index: cui/source/dialogs/hlmarkwn.cxx =================================================================== --- cui/source/dialogs/hlmarkwn.cxx (revision 1565575) +++ cui/source/dialogs/hlmarkwn.cxx (working copy) @@ -261,7 +261,7 @@ { uno::Reference< lang::XComponent > xComp; - if( aURL.getLength() ) + if( !aURL.isEmpty() ) { // load from url uno::Reference< frame::XComponentLoader > xLoader( xDesktop, uno::UNO_QUERY ); @@ -302,12 +302,12 @@ else mnError = LERR_DOCNOTOPEN; - if ( aURL.getLength() ) + if ( !aURL.isEmpty() ) xComp->dispose(); } else { - if( aURL.getLength() ) + if( !aURL.isEmpty() ) mnError=LERR_DOCNOTOPEN; } } Index: cui/source/dialogs/hlinettp.cxx =================================================================== --- cui/source/dialogs/hlinettp.cxx (revision 1565575) +++ cui/source/dialogs/hlinettp.cxx (working copy) @@ -153,7 +153,7 @@ setFTPUser(aURL.GetUser(), aURL.GetPass()); //do not show password and user in url - if(aURL.GetUser().getLength()!=0 || aURL.GetPass().getLength()!=0 ) + if( !aURL.GetUser().isEmpty() || !aURL.GetPass().isEmpty() ) aURL.SetUserAndPass(aEmptyStr,aEmptyStr); } Index: cui/source/dialogs/scriptdlg.cxx =================================================================== --- cui/source/dialogs/scriptdlg.cxx (revision 1565575) +++ cui/source/dialogs/scriptdlg.cxx (working copy) @@ -377,7 +377,7 @@ bool bChildrenOnDemand, std::auto_ptr< SFEntry > aUserData, ::rtl::OUString factoryURL ) { SvLBoxEntry * p; - if( nBitmap == IMG_DOCUMENT && factoryURL.getLength() > 0 ) + if( nBitmap == IMG_DOCUMENT && !factoryURL.isEmpty() ) { Image aImage = SvFileInformationManager::GetFileImage( INetURLObject(factoryURL), false, @@ -1329,7 +1329,7 @@ { sal_Int32 pos = source.indexOf( token ); - if ( pos != -1 && value.getLength() != 0 ) + if ( pos != -1 && !value.isEmpty() ) { return source.replaceAt( pos, token.getLength(), value ); } @@ -1356,7 +1356,7 @@ result = ReplaceString( result, ::rtl::OUString::createFromAscii( "%LINENUMBER" ), line ); - if ( type.getLength() != 0 ) + if ( !type.isEmpty() ) { result += ::rtl::OUString::createFromAscii( "\n\n" ); result += ::rtl::OUString(String(CUI_RES(RID_SVXSTR_ERROR_TYPE_LABEL))); @@ -1364,7 +1364,7 @@ result += type; } - if ( message.getLength() != 0 ) + if ( !message.isEmpty() ) { result += ::rtl::OUString::createFromAscii( "\n\n" ); result += ::rtl::OUString(String(CUI_RES(RID_SVXSTR_ERROR_MESSAGE_LABEL))); @@ -1600,7 +1600,7 @@ { ::rtl::OUString message; - if ( pMessage && pMessage->getLength() != 0 ) + if ( pMessage && !pMessage->isEmpty() ) { message = *pMessage; } Index: cui/source/dialogs/SpellDialog.cxx =================================================================== --- cui/source/dialogs/SpellDialog.cxx (revision 1565575) +++ cui/source/dialogs/SpellDialog.cxx (working copy) @@ -339,7 +339,7 @@ bIsGrammarError = pSpellErrorDescription->bIsGrammarError; aExplainPB.SetExplanation(pSpellErrorDescription->sExplanation ); } - if( pSpellErrorDescription && pSpellErrorDescription->sDialogTitle.getLength() ) + if( pSpellErrorDescription && !pSpellErrorDescription->sDialogTitle.isEmpty() ) { // use this function to apply the correct image to be used... SetTitle_Impl( nAltLanguage ); @@ -386,7 +386,7 @@ aIgnoreAllPB.Show( bShowChangeAll ); aAddToDictMB.Show( bShowChangeAll ); aIgnoreRulePB.Show( !bShowChangeAll ); - aIgnoreRulePB.Enable(pSpellErrorDescription && pSpellErrorDescription->sRuleId.getLength()); + aIgnoreRulePB.Enable(pSpellErrorDescription && !pSpellErrorDescription->sRuleId.isEmpty()); aExplainPB.Enable( aExplainPB.HasExplanation() ); aAutoCorrPB.Show( bShowChangeAll && rParent.HasAutoCorrection() ); @@ -901,7 +901,7 @@ { String sVendor; const SpellErrorDescription* pSpellErrorDescription = aSentenceED.GetAlternatives(); - if( pSpellErrorDescription && pSpellErrorDescription->sServiceName.getLength() ) + if( pSpellErrorDescription && !pSpellErrorDescription->sServiceName.isEmpty() ) { bool bHighContrast = GetSettings().GetStyleSettings().GetHighContrastMode(); ::rtl::OUString sSuggestionImageUrl = @@ -952,7 +952,7 @@ pImpl->aDics = xDicList->getDictionaries(); // this is redundant, there will always be *at least* one dictionary - bEnable = pImpl->aDics.getLength(); + bEnable = pImpl->aDics.hasElements(); } aAddToDictMB.Enable( bEnable ); @@ -998,7 +998,7 @@ { OUString aDictionaryImageUrl( aCfg.GetSpellAndGrammarContextDictionaryImage( xSvcInfo->getImplementationName(), bHC) ); - if (aDictionaryImageUrl.getLength() > 0) + if ( !aDictionaryImageUrl.isEmpty() ) { Image aImage( lcl_GetImageFromPngUrl( aDictionaryImageUrl ) ); pMenu->SetItemImage( nItemId, aImage ); Index: cui/source/dialogs/hangulhanjadlg.cxx =================================================================== --- cui/source/dialogs/hangulhanjadlg.cxx (revision 1565575) +++ cui/source/dialogs/hangulhanjadlg.cxx (working copy) @@ -1532,7 +1532,7 @@ Sequence< OUString >& _rEntries ) { bool bRet = false; - if( _xDict.is() && _rOrg.getLength() ) + if( _xDict.is() && !_rOrg.isEmpty() ) { try { @@ -1541,7 +1541,7 @@ _rOrg.getLength(), ConversionDirection_FROM_LEFT, ::com::sun::star::i18n::TextConversionOption::NONE ); - bRet = _rEntries.getLength() > 0; + bRet = _rEntries.hasElements(); } catch( const IllegalArgumentException& ) {