diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2011-12-09 14:00:09 -0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-12-09 23:37:05 +0100 |
commit | f43311dfb77342f0d003bee5336215f92500f15c (patch) | |
tree | 7f5ef6154f07850add2eb3f169508319f7e11889 /avmedia | |
parent | 1d1f049859e080b403c743f7e0604bd72475a824 (diff) |
Fix for fdo43460, Part I, getLength to isEmpty
Part I
Modules
unoControl, accessibility and avmedia
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/framework/mediacontrol.cxx | 8 | ||||
-rw-r--r-- | avmedia/source/viewer/mediawindow.cxx | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/avmedia/source/framework/mediacontrol.cxx b/avmedia/source/framework/mediacontrol.cxx index ceb375ed24f8..cdfce1ae0bff 100644 --- a/avmedia/source/framework/mediacontrol.cxx +++ b/avmedia/source/framework/mediacontrol.cxx @@ -293,7 +293,7 @@ void MediaControl::setState( const MediaItem& rItem ) 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 ); @@ -372,7 +372,7 @@ void MediaControl::implUpdateToolboxes() void MediaControl::implUpdateTimeSlider() { - if( !maItem.getURL().getLength() || !IsEnabled() ) + if( maItem.getURL().isEmpty() || !IsEnabled() ) maTimeSlider.Disable(); else { @@ -399,7 +399,7 @@ void MediaControl::implUpdateTimeSlider() void MediaControl::implUpdateVolumeSlider() { - if( !maItem.getURL().getLength() || !IsEnabled() ) + if( maItem.getURL().isEmpty() || !IsEnabled() ) maVolumeSlider.Disable(); else { @@ -416,7 +416,7 @@ void MediaControl::implUpdateVolumeSlider() void MediaControl::implUpdateTimeField( double fCurTime ) { - if( maItem.getURL().getLength() > 0 ) + if( !maItem.getURL().isEmpty() ) { String aTimeString; diff --git a/avmedia/source/viewer/mediawindow.cxx b/avmedia/source/viewer/mediawindow.cxx index 713e9e9058e8..e6c6c067e98e 100644 --- a/avmedia/source/viewer/mediawindow.cxx +++ b/avmedia/source/viewer/mediawindow.cxx @@ -274,7 +274,7 @@ bool MediaWindow::executeMediaURLDialog(Window* /* pParent */, { for( sal_Int32 nIndex = 0; nIndex >= 0; ) { - if( aAllTypes.getLength() ) + if( !aAllTypes.isEmpty() ) aAllTypes += aSeparator; ( aAllTypes += aWildcard ) += aFilters[ i ].second.getToken( 0, ';', nIndex ); @@ -290,7 +290,7 @@ bool MediaWindow::executeMediaURLDialog(Window* /* pParent */, for( sal_Int32 nIndex = 0; nIndex >= 0; ) { - if( aTypes.getLength() ) + if( !aTypes.isEmpty() ) aTypes += aSeparator; ( aTypes += aWildcard ) += aFilters[ i ].second.getToken( 0, ';', nIndex ); @@ -334,10 +334,10 @@ bool MediaWindow::executeMediaURLDialog(Window* /* pParent */, } } } - else if( rURL.getLength() ) + else if( !rURL.isEmpty() ) rURL = ::rtl::OUString(); - return( rURL.getLength() > 0 ); + return( !rURL.isEmpty() ); } // ------------------------------------------------------------------------- |