diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-09 17:22:11 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-09 20:32:39 +0100 |
commit | a2454a42ad2236f0f6b88be166bc7e6a8f90f036 (patch) | |
tree | 7f6dfc38cfd617f41c63a17640ec7ef8650a2c45 /connectivity | |
parent | eba2ef9504fe4034cbb44840d459d82ab8a141b1 (diff) |
fdo#43460: use isEmpty()
Change-Id: I01f503ea5268245cc4f98524931730cfa063d57e
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/evoab2/NConnection.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/hsqldb/HDriver.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/evoab2/NConnection.cxx b/connectivity/source/drivers/evoab2/NConnection.cxx index 528508d1da01..2602f34480a5 100644 --- a/connectivity/source/drivers/evoab2/NConnection.cxx +++ b/connectivity/source/drivers/evoab2/NConnection.cxx @@ -43,7 +43,7 @@ using namespace ::com::sun::star::lang; ::rtl::OUString implGetExceptionMsg( Exception& e, const ::rtl::OUString& aExceptionType_ ) { ::rtl::OUString aExceptionType = aExceptionType_; - if( aExceptionType.getLength() == 0 ) + if( aExceptionType.isEmpty() ) aExceptionType = ::rtl::OUString("Unknown") ; ::rtl::OUString aTypeLine( "\nType: " ); diff --git a/connectivity/source/drivers/hsqldb/HDriver.cxx b/connectivity/source/drivers/hsqldb/HDriver.cxx index 5e31646f60f5..0a07e1d1ecc8 100644 --- a/connectivity/source/drivers/hsqldb/HDriver.cxx +++ b/connectivity/source/drivers/hsqldb/HDriver.cxx @@ -273,7 +273,7 @@ namespace connectivity rtl::OString sVersionString; while ( pStream->ReadLine(sLine) ) { - if ( sLine.getLength() == 0 ) + if ( sLine.isEmpty() ) continue; const rtl::OString sIniKey = comphelper::string::getToken(sLine, 0, '='); const rtl::OString sValue = comphelper::string::getToken(sLine, 1, '='); |