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/core/dataaccess/databasecontext.cxx | |
parent | 1835d0599e3d8984c7dfa2bbef2be5747596716a (diff) |
Fix for fdo43460 Part XII getLength() to isEmpty()
Part XII
Module
dbaccess
Diffstat (limited to 'dbaccess/source/core/dataaccess/databasecontext.cxx')
-rw-r--r-- | dbaccess/source/core/dataaccess/databasecontext.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dbaccess/source/core/dataaccess/databasecontext.cxx b/dbaccess/source/core/dataaccess/databasecontext.cxx index 0492cd21a0b0..cac2b87229ce 100644 --- a/dbaccess/source/core/dataaccess/databasecontext.cxx +++ b/dbaccess/source/core/dataaccess/databasecontext.cxx @@ -264,7 +264,7 @@ Reference< XInterface > SAL_CALL ODatabaseContext::createInstanceWithArguments( ::rtl::OUString sURL = aArgs.getOrDefault( (::rtl::OUString)INFO_POOLURL, ::rtl::OUString() ); Reference< XInterface > xDataSource; - if ( sURL.getLength() ) + if ( !sURL.isEmpty() ) xDataSource = getObject( sURL ); if ( !xDataSource.is() ) @@ -305,7 +305,7 @@ Reference< XInterface > ODatabaseContext::getRegisteredObject(const rtl::OUStri ::rtl::OUString sURL( getDatabaseLocation( _rName ) ); - if ( !sURL.getLength() ) + if ( sURL.isEmpty() ) // there is a registration for this name, but no URL throw IllegalArgumentException(); @@ -428,7 +428,7 @@ void ODatabaseContext::registerObject(const rtl::OUString& _rName, const Referen MutexGuard aGuard(m_aMutex); ::connectivity::checkDisposed(DatabaseAccessContext_Base::rBHelper.bDisposed); - if ( !_rName.getLength() ) + if ( _rName.isEmpty() ) throw IllegalArgumentException( ::rtl::OUString(), *this, 1 ); Reference< XDocumentDataSource > xDocDataSource( _rxObject, UNO_QUERY ); @@ -437,7 +437,7 @@ void ODatabaseContext::registerObject(const rtl::OUString& _rName, const Referen throw IllegalArgumentException( ::rtl::OUString(), *this, 2 ); ::rtl::OUString sURL = xModel->getURL(); - if ( !sURL.getLength() ) + if ( sURL.isEmpty() ) throw IllegalArgumentException( DBACORE_RESSTRING( RID_STR_DATASOURCE_NOT_STORED ), *this, 2 ); registerDatabaseLocation( _rName, sURL ); @@ -501,7 +501,7 @@ void ODatabaseContext::storeTransientProperties( ODatabaseModelImpl& _rModelImpl } else { - OSL_ENSURE( ( sDocumentURL.getLength() == 0 ) && ( _rModelImpl.m_sName.getLength() == 0 ), + OSL_ENSURE( sDocumentURL.isEmpty() && _rModelImpl.m_sName.isEmpty() , "ODatabaseContext::storeTransientProperties: a non-empty data source which I do not know?!" ); } } @@ -614,7 +614,7 @@ Any ODatabaseContext::getByName(const rtl::OUString& _rName) throw( NoSuchElemen { MutexGuard aGuard(m_aMutex); ::connectivity::checkDisposed(DatabaseAccessContext_Base::rBHelper.bDisposed); - if ( !_rName.getLength() ) + if ( _rName.isEmpty() ) throw NoSuchElementException(_rName, *this); try |