Index: accessibility/source/extended/accessibleiconchoicectrl.cxx =================================================================== --- accessibility/source/extended/accessibleiconchoicectrl.cxx (revision 1563353) +++ accessibility/source/extended/accessibleiconchoicectrl.cxx (working copy) @@ -235,7 +235,7 @@ ensureAlive(); ::rtl::OUString sName = getCtrl()->GetAccessibleName(); - if ( sName.getLength() == 0 ) + if ( sName.isEmpty() ) sName = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IconChoiceControl" ) ); return sName; } Index: accessibility/source/extended/textwindowaccessibility.cxx =================================================================== --- accessibility/source/extended/textwindowaccessibility.cxx (revision 1563353) +++ accessibility/source/extended/textwindowaccessibility.cxx (working copy) @@ -1955,7 +1955,7 @@ m_rView.DeleteSelected(); if (bPaste) m_rView.Paste(); - else if (rText.getLength() != 0) + else if ( !rText.isEmpty() ) m_rView.InsertText(rText); } Index: accessibility/source/standard/vclxaccessibletoolboxitem.cxx =================================================================== --- accessibility/source/standard/vclxaccessibletoolboxitem.cxx (revision 1563353) +++ accessibility/source/standard/vclxaccessibletoolboxitem.cxx (working copy) @@ -148,14 +148,14 @@ // sRet += String( RTL_CONSTASCII_USTRINGPARAM( " " ) ); // sRet += sWinText; // } - if ( sRet.getLength() == 0 ) + if ( sRet.isEmpty() ) { Window* pItemWindow = m_pToolBox->GetItemWindow( m_nItemId ); if ( m_nRole == AccessibleRole::PANEL && pItemWindow && pItemWindow->GetAccessible().is() && pItemWindow->GetAccessible()->getAccessibleContext().is() ) { ::rtl::OUString sWinText = pItemWindow->GetAccessible()->getAccessibleContext()->getAccessibleName(); - if ( sWinText.getLength() > 0 ) + if ( !sWinText.isEmpty() ) sRet = sWinText; } } @@ -642,7 +642,7 @@ sRet = m_pToolBox->GetHelpText( m_nItemId ); else sRet = m_pToolBox->GetQuickHelpText( m_nItemId ); - if ( !sRet.getLength() ) + if ( sRet.isEmpty() ) // no help text set, so use item text sRet = m_pToolBox->GetItemText( m_nItemId ); } Index: accessibility/source/standard/vclxaccessiblebox.cxx =================================================================== --- accessibility/source/standard/vclxaccessiblebox.cxx (revision 1563353) +++ accessibility/source/standard/vclxaccessiblebox.cxx (working copy) @@ -188,7 +188,7 @@ if ( xText.is() ) { ::rtl::OUString sText = xText->getSelectedText(); - if ( !sText.getLength() ) + if ( sText.isEmpty() ) sText = xText->getText(); pList->UpdateSelection_Acc (sText, m_bIsDropDownBox); //if(m_bIsDropDownBox && !pList->IsInDropDown()) @@ -241,7 +241,7 @@ if ( xText.is() ) { ::rtl::OUString sText = xText->getSelectedText(); - if ( !sText.getLength() ) + if ( sText.isEmpty() ) sText = xText->getText(); pList->UpdateSelection (sText); } @@ -575,7 +575,7 @@ sText = pSubEdit->GetText(); nEntryCount = pComboBox->GetEntryCount(); } - if (sText.getLength() == 0 && nEntryCount >0) + if ( sText.isEmpty() && nEntryCount > 0 ) rStateSet.AddState(AccessibleStateType::INDETERMINATE); } else if (m_aBoxType == LISTBOX && m_bIsDropDownBox == true) Index: accessibility/source/standard/accessiblemenuitemcomponent.cxx =================================================================== --- accessibility/source/standard/accessiblemenuitemcomponent.cxx (revision 1563353) +++ accessibility/source/standard/accessiblemenuitemcomponent.cxx (working copy) @@ -205,7 +205,7 @@ { sal_uInt16 nItemId = m_pParent->GetItemId( m_nItemPos ); sName = m_pParent->GetAccessibleName( nItemId ); - if ( sName.getLength() == 0 ) + if ( sName.isEmpty() ) sName = m_pParent->GetItemText( nItemId ); sName = OutputDevice::GetNonMnemonicString( sName ); Index: avmedia/source/viewer/mediawindow.cxx =================================================================== --- avmedia/source/viewer/mediawindow.cxx (revision 1563353) +++ avmedia/source/viewer/mediawindow.cxx (working copy) @@ -406,7 +406,7 @@ { for( sal_Int32 nIndex = 0; nIndex >= 0; ) { - if( aAllTypes.getLength() ) + if( !aAllTypes.isEmpty() ) aAllTypes += aSeparator; ( aAllTypes += aWildcard ) += aFilters[ i ].second.getToken( 0, ';', nIndex ); @@ -422,7 +422,7 @@ for( sal_Int32 nIndex = 0; nIndex >= 0; ) { - if( aTypes.getLength() ) + if( !aTypes.isEmpty() ) aTypes += aSeparator; ( aTypes += aWildcard ) += aFilters[ i ].second.getToken( 0, ';', nIndex ); @@ -440,10 +440,10 @@ const INetURLObject aURL( aDlg.GetPath() ); rURL = aURL.GetMainURL( INetURLObject::DECODE_UNAMBIGUOUS ); } - else if( rURL.getLength() ) + else if( !rURL.isEmpty() ) rURL = ::rtl::OUString(); - return( rURL.getLength() > 0 ); + return !rURL.isEmpty(); } // ------------------------------------------------------------------------- Index: avmedia/source/gstreamer/gstplayer.cxx =================================================================== --- avmedia/source/gstreamer/gstplayer.cxx (revision 1563353) +++ avmedia/source/gstreamer/gstplayer.cxx (working copy) @@ -209,7 +209,7 @@ { Player* pPlayer = NULL; - if( rURL.getLength() ) + if( !rURL.isEmpty() ) { // safely initialize GLib threading framework try Index: avmedia/source/framework/soundhandler.cxx =================================================================== --- avmedia/source/framework/soundhandler.cxx (revision 1563353) +++ avmedia/source/framework/soundhandler.cxx (working copy) @@ -415,7 +415,7 @@ ::rtl::OUString sURL = aDescriptor.getUnpackedValueOrDefault(::comphelper::MediaDescriptor::PROP_URL(), ::rtl::OUString()); if ( - (sURL.getLength() ) && + !sURL.isEmpty() && (avmedia::MediaWindow::isMediaURL(sURL)) ) { Index: avmedia/source/framework/mediacontrol.cxx =================================================================== --- avmedia/source/framework/mediacontrol.cxx (revision 1563353) +++ avmedia/source/framework/mediacontrol.cxx (working copy) @@ -307,7 +307,7 @@ void MediaControl::implUpdateToolboxes() { - const bool bValidURL = ( maItem.getURL().getLength() > 0 ); + const bool bValidURL = !maItem.getURL().isEmpty(); maPlayToolBox.EnableItem( AVMEDIA_TOOLBOXITEM_INSERT, bValidURL ); maPlayToolBox.EnableItem( AVMEDIA_TOOLBOXITEM_PLAY, bValidURL ); @@ -386,7 +386,7 @@ void MediaControl::implUpdateTimeSlider() { - if( !maItem.getURL().getLength() || !IsEnabled() ) + if( maItem.getURL().isEmpty() || !IsEnabled() ) maTimeSlider.Disable(); else { @@ -413,7 +413,7 @@ void MediaControl::implUpdateVolumeSlider() { - if( !maItem.getURL().getLength() || !IsEnabled() ) + if( maItem.getURL().isEmpty() || !IsEnabled() ) maVolumeSlider.Disable(); else { @@ -430,7 +430,7 @@ void MediaControl::implUpdateTimeField( double fCurTime ) { - if( maItem.getURL().getLength() > 0 ) + if( !maItem.getURL().isEmpty() ) { String aTimeString; Index: avmedia/source/quicktime/player.cxx =================================================================== --- avmedia/source/quicktime/player.cxx (revision 1563353) +++ avmedia/source/quicktime/player.cxx (working copy) @@ -451,7 +451,7 @@ uno::Reference< media::XFrameGrabber > xRet; OSL_TRACE ("Player::createFrameGrabber"); - if( maURL.getLength() > 0 ) + if( !maURL.isEmpty() ) { FrameGrabber* pGrabber = new FrameGrabber( mxMgr ); Index: avmedia/source/win/framegrabber.cxx =================================================================== --- avmedia/source/win/framegrabber.cxx (revision 1563353) +++ avmedia/source/win/framegrabber.cxx (working copy) @@ -112,7 +112,7 @@ else maURL = ::rtl::OUString(); - return( maURL.getLength() > 0 ); + return !maURL.isEmpty(); } // ------------------------------------------------------------------------------ Index: avmedia/source/win/player.cxx =================================================================== --- avmedia/source/win/player.cxx (revision 1563353) +++ avmedia/source/win/player.cxx (working copy) @@ -552,7 +552,7 @@ uno::Reference< media::XFrameGrabber > xRet; - if( maURL.getLength() > 0 ) + if( !maURL.isEmpty() ) { FrameGrabber* pGrabber = new FrameGrabber( mxMgr ); Index: automation/source/server/recorder.cxx =================================================================== --- automation/source/server/recorder.cxx (revision 1563353) +++ automation/source/server/recorder.cxx (working copy) @@ -114,7 +114,7 @@ Window* MacroRecorder::GetParentWithID( Window* pThis ) { Window *pOverlap = pThis->GetWindow( WINDOW_OVERLAP ); - while ( pOverlap != pThis && !pThis->GetUniqueOrHelpId().getLength() && pThis->GET_REAL_PARENT() ) + while ( pOverlap != pThis && pThis->GetUniqueOrHelpId().isEmpty() && pThis->GET_REAL_PARENT() ) pThis = pThis->GET_REAL_PARENT(); return pThis; } @@ -330,7 +330,7 @@ case VCLEVENT_BUTTON_CLICK: Window* pParent = pWin->GetParent(); sal_Bool bDone = sal_False; - if ( pParent->IsDialog() && !pWin->GetUniqueOrHelpId().getLength() ) + if ( pParent->IsDialog() && pWin->GetUniqueOrHelpId().isEmpty() ) { switch ( pParent->GetType() ) { @@ -413,7 +413,7 @@ } if ( m_bRecord ) { - if ( !bSendData && pWin->GetUniqueOrHelpId().getLength() ) + if ( !bSendData && !pWin->GetUniqueOrHelpId().isEmpty() ) { StatementList::pRet->GenReturn( RET_MacroRecorder, pWin->GetUniqueOrHelpId(), (comm_USHORT)M_Click ); bSendData = sal_True; @@ -536,7 +536,7 @@ // compare to 1 for floating ToolBoxes if ( m_bRecord ) { - if ( !pWin->GetUniqueOrHelpId().getLength() /* || pWin->GetUniqueOrHelpId().Matches( 1 ) */ ) + if ( pWin->GetUniqueOrHelpId().isEmpty() /* || pWin->GetUniqueOrHelpId().Matches( 1 ) */ ) // generate direct Button access StatementList::pRet->GenReturn( RET_MacroRecorder, Str2Id( pTB->GetItemCommand( pTB->GetCurItemId() ) ), (comm_USHORT)(M_Click) ); else Index: automation/source/server/statemnt.cxx =================================================================== --- automation/source/server/statemnt.cxx (revision 1563353) +++ automation/source/server/statemnt.cxx (working copy) @@ -868,7 +868,7 @@ break; default: - if ( ( pBase->GetUniqueOrHelpId().getLength() == 0 ) && !( nConf & DH_MODE_ALLWIN ) ) + if ( pBase->GetUniqueOrHelpId().isEmpty() && !( nConf & DH_MODE_ALLWIN ) ) bSkip = sal_True; break; } @@ -2087,7 +2087,7 @@ { Window* pNew = pTranslationWindow->GetWindow( WINDOW_CLIENT ); // Bei Dockingwindoes das kanze Geraffel von Docking Floating �berspringen - while ( IsDialog( pNew ) && !pNew->GetUniqueOrHelpId().getLength() && pNew->GetChildCount() == 1 ) + while ( IsDialog( pNew ) && pNew->GetUniqueOrHelpId().isEmpty() && pNew->GetChildCount() == 1 ) pNew = pNew->GetChild( 0 ); pTranslationWindow = pNew; }