diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2011-12-19 18:10:37 -0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2011-12-21 09:52:48 +0100 |
commit | 545921f914ec172bcd6712cce54847131a49afb6 (patch) | |
tree | 92dde2ebc7c4d70240e4967b11526e73fef10b16 /dbaccess/source/ui/app/AppController.cxx | |
parent | Fix for fdo43460 Part XIII getLength() to isEmpty() (diff) | |
download | core-545921f914ec172bcd6712cce54847131a49afb6.tar.gz core-545921f914ec172bcd6712cce54847131a49afb6.zip |
Fix for fdo43460 Part XII getLength() to isEmpty()
Part XII
Module
dbaccess
Diffstat (limited to 'dbaccess/source/ui/app/AppController.cxx')
-rw-r--r-- | dbaccess/source/ui/app/AppController.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx index 216d65ffe63f..89cbc28b2068 100644 --- a/dbaccess/source/ui/app/AppController.cxx +++ b/dbaccess/source/ui/app/AppController.cxx @@ -422,7 +422,7 @@ void SAL_CALL OApplicationController::disposing() if ( m_xModel.is() ) { ::rtl::OUString sUrl = m_xModel->getURL(); - if ( sUrl.getLength() ) + if ( !sUrl.isEmpty() ) { ::comphelper::NamedValueCollection aArgs( m_xModel->getArgs() ); if ( true == aArgs.getOrDefault( "PickListEntry", true ) ) @@ -676,7 +676,7 @@ FeatureState OApplicationController::GetState(sal_uInt16 _nId) const if ( aReturn.bEnabled ) { const ::rtl::OUString sReportEngineServiceName = ::dbtools::getDefaultReportEngineServiceName(m_xServiceFactory); - aReturn.bEnabled = sReportEngineServiceName.getLength() != 0; + aReturn.bEnabled = !sReportEngineServiceName.isEmpty(); if ( aReturn.bEnabled ) { const Reference< XEnumeration > xEnumDrivers = xEnumAccess->createContentEnumeration(sReportEngineServiceName); @@ -1175,7 +1175,7 @@ void OApplicationController::Execute(sal_uInt16 _nId, const Sequence< PropertyVa ::rtl::OUString sUrl; if ( m_xModel.is() ) sUrl = m_xModel->getURL(); - if ( !sUrl.getLength() ) + if ( sUrl.isEmpty() ) sUrl = SvtPathOptions().GetWorkPath(); ::sfx2::FileDialogHelper aFileDlg( @@ -2507,7 +2507,7 @@ sal_Int8 OApplicationController::queryDrop( const AcceptDropEvent& _rEvt, const if ( pHitEntry ) { sName = pView->getQualifiedName( pHitEntry ); - if ( sName.getLength() ) + if ( !sName.isEmpty() ) { Reference< XHierarchicalNameAccess > xContainer(getElements(pView->getElementType()),UNO_QUERY); if ( xContainer.is() && xContainer->hasByHierarchicalName(sName) ) @@ -2848,7 +2848,7 @@ void OApplicationController::containerFound( const Reference< XContainer >& _xCo try { sName = getContainer()->getQualifiedName( NULL ); - OSL_ENSURE( sName.getLength(), "OApplicationController::getCurrentlySelectedName: no name given!" ); + OSL_ENSURE( !sName.isEmpty(), "OApplicationController::getCurrentlySelectedName: no name given!" ); } catch( const Exception& ) { |