diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2011-12-14 23:13:36 -0200 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-12-17 16:36:00 +0400 |
commit | 1777c09a0781710c309e500f680e6f95c080ca86 (patch) | |
tree | 30b82b768f01de93895daadc1bec8731b082d98c /connectivity/source/drivers/file | |
parent | 3744cd818383fd954125a6567856e92198792cf1 (diff) |
Fix for fdo43460 Part IX getLength() to isEmpty()
Part IX
Module
connectivity
Diffstat (limited to 'connectivity/source/drivers/file')
-rw-r--r-- | connectivity/source/drivers/file/FConnection.cxx | 4 | ||||
-rw-r--r-- | connectivity/source/drivers/file/FDatabaseMetaData.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/file/FPreparedStatement.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/file/FConnection.cxx b/connectivity/source/drivers/file/FConnection.cxx index 09e6a2514393..3ba887ad9b09 100644 --- a/connectivity/source/drivers/file/FConnection.cxx +++ b/connectivity/source/drivers/file/FConnection.cxx @@ -158,7 +158,7 @@ void OConnection::construct(const ::rtl::OUString& url,const Sequence< PropertyV m_bDefaultTextEncoding = true; } - if ( aExt.getLength() ) + if ( !aExt.isEmpty() ) m_aFilenameExtension = aExt; try @@ -449,7 +449,7 @@ void OConnection::throwUrlNotValid(const ::rtl::OUString & _rsUrl,const ::rtl::O aError.SQLState = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("S1000")); aError.ErrorCode = 0; aError.Context = static_cast< XConnection* >(this); - if (_rsMessage.getLength()) + if (!_rsMessage.isEmpty()) aError.NextException <<= SQLException(_rsMessage, aError.Context, ::rtl::OUString(), 0, Any()); throw aError; diff --git a/connectivity/source/drivers/file/FDatabaseMetaData.cxx b/connectivity/source/drivers/file/FDatabaseMetaData.cxx index caf0dc15277e..5ab1320b16cd 100644 --- a/connectivity/source/drivers/file/FDatabaseMetaData.cxx +++ b/connectivity/source/drivers/file/FDatabaseMetaData.cxx @@ -301,7 +301,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables( sal_Bool bErg = sal_False; do { - if (!aURL.getExtension().getLength()) + if (aURL.getExtension().isEmpty()) { sal_Unicode nChar = aURL.getBase().getStr()[0]; if(match(tableNamePattern,aURL.getBase(),'\0') && ( !bCheckEnabled || ( bCheckEnabled && ((nChar < '0' || nChar > '9')))) ) diff --git a/connectivity/source/drivers/file/FPreparedStatement.cxx b/connectivity/source/drivers/file/FPreparedStatement.cxx index 16037c985329..53d628f18a42 100644 --- a/connectivity/source/drivers/file/FPreparedStatement.cxx +++ b/connectivity/source/drivers/file/FPreparedStatement.cxx @@ -530,7 +530,7 @@ void OPreparedStatement::describeColumn(OSQLParseNode* _pParameter,OSQLParseNode { ::rtl::OUString sColumnName,sTableRange; m_aSQLIterator.getColumnRange(_pNode,sColumnName,sTableRange); - if ( sColumnName.getLength() ) + if ( !sColumnName.isEmpty() ) { Reference<XNameAccess> xNameAccess = _xTable->getColumns(); if(xNameAccess->hasByName(sColumnName)) |