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 /UnoControls | |
parent | 1d1f049859e080b403c743f7e0604bd72475a824 (diff) |
Fix for fdo43460, Part I, getLength to isEmpty
Part I
Modules
unoControl, accessibility and avmedia
Diffstat (limited to 'UnoControls')
-rw-r--r-- | UnoControls/source/controls/framecontrol.cxx | 2 | ||||
-rw-r--r-- | UnoControls/source/controls/progressmonitor.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/UnoControls/source/controls/framecontrol.cxx b/UnoControls/source/controls/framecontrol.cxx index 006924c85e4e..6b2919094f6f 100644 --- a/UnoControls/source/controls/framecontrol.cxx +++ b/UnoControls/source/controls/framecontrol.cxx @@ -203,7 +203,7 @@ void SAL_CALL FrameControl::createPeer( const Reference< XToolkit >& xToo BaseControl::createPeer( xToolkit, xParentPeer ); if ( impl_getPeerWindow().is() ) { - if( m_sComponentURL.getLength() > 0 ) + if( !m_sComponentURL.isEmpty() ) { impl_createFrame( getPeer(), m_sComponentURL, m_seqLoaderArguments ); } diff --git a/UnoControls/source/controls/progressmonitor.cxx b/UnoControls/source/controls/progressmonitor.cxx index 52bd71a99c0e..b3a518248a9e 100644 --- a/UnoControls/source/controls/progressmonitor.cxx +++ b/UnoControls/source/controls/progressmonitor.cxx @@ -1038,11 +1038,11 @@ sal_Bool ProgressMonitor::impl_debug_checkParameter ( ) { // Check "rTopic" if ( &rTopic == NULL ) return sal_False ; // NULL-pointer for reference ???!!! - if ( rTopic.getLength () < 1 ) return sal_False ; // "" + if ( rTopic.isEmpty() ) return sal_False ; // "" // Check "rText" if ( &rText == NULL ) return sal_False ; // NULL-pointer for reference ???!!! - if ( rText.getLength () < 1 ) return sal_False ; // "" + if ( rText.isEmpty() ) return sal_False ; // "" // "bbeforeProgress" is valid in everyway! @@ -1055,7 +1055,7 @@ sal_Bool ProgressMonitor::impl_debug_checkParameter ( const OUString& rTopic, sa { // Check "rTopic" if ( &rTopic == NULL ) return sal_False ; // NULL-pointer for reference ???!!! - if ( rTopic.getLength () < 1 ) return sal_False ; // "" + if ( rTopic.isEmpty() ) return sal_False ; // "" // "bbeforeProgress" is valid in everyway! |