summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-23 16:07:18 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-23 19:17:18 -0200
commit558112542348bcbd754853847c968e2203abf269 (patch)
tree26e31cff04d6c8612921b2c469702d59efb90057
parent4a0af6a0581fc7ac2b6544e996529405276d06bf (diff)
Fix for fdo43460 Part XLIV getLength() to isEmpty()
Part XLIV many modules(inc's)
-rw-r--r--connectivity/inc/connectivity/sqliterator.hxx2
-rw-r--r--connectivity/source/inc/OColumn.hxx2
-rw-r--r--extensions/source/inc/componentmodule.cxx4
-rw-r--r--io/source/stm/odata.cxx2
-rw-r--r--registry/inc/registry/registry.hxx2
-rw-r--r--sal/inc/rtl/bootstrap.hxx2
6 files changed, 7 insertions, 7 deletions
diff --git a/connectivity/inc/connectivity/sqliterator.hxx b/connectivity/inc/connectivity/sqliterator.hxx
index 71299b857cda..eb316a80950d 100644
--- a/connectivity/inc/connectivity/sqliterator.hxx
+++ b/connectivity/inc/connectivity/sqliterator.hxx
@@ -175,7 +175,7 @@ namespace connectivity
The returned object contains a chain (via SQLException::NextException) of SQLExceptions.
*/
inline const ::com::sun::star::sdbc::SQLException& getErrors() const { return m_aErrors; }
- inline bool hasErrors() const { return m_aErrors.Message.getLength() > 0; }
+ inline bool hasErrors() const { return !m_aErrors.Message.isEmpty(); }
// statement type (already set in setParseTree):
OSQLStatementType getStatementType() const { return m_eStatementType; }
diff --git a/connectivity/source/inc/OColumn.hxx b/connectivity/source/inc/OColumn.hxx
index baa54737f482..7efae973384f 100644
--- a/connectivity/source/inc/OColumn.hxx
+++ b/connectivity/source/inc/OColumn.hxx
@@ -104,7 +104,7 @@ namespace connectivity
m_Writable(_aWritable),
m_DefinitelyWritable(_aDefinitelyWritable)
{
- if(!m_ColumnLabel.getLength())
+ if(m_ColumnLabel.isEmpty())
m_ColumnLabel = _aColumnName;
}
diff --git a/extensions/source/inc/componentmodule.cxx b/extensions/source/inc/componentmodule.cxx
index 4a7b649c4af9..6c0b9956c5cf 100644
--- a/extensions/source/inc/componentmodule.cxx
+++ b/extensions/source/inc/componentmodule.cxx
@@ -89,7 +89,7 @@ namespace COMPMOD_NAMESPACE
// note that this method is not threadsafe, which counts for the whole class !
if (!m_pRessources && !m_bInitialized)
{
- DBG_ASSERT(m_sFilePrefix.getLength(), "OModuleImpl::getResManager: no resource file prefix!");
+ DBG_ASSERT(!m_sFilePrefix.isEmpty(), "OModuleImpl::getResManager: no resource file prefix!");
// create a manager with a fixed prefix
m_pRessources = ResMgr::CreateResMgr(m_sFilePrefix.getStr());
DBG_ASSERT(m_pRessources,
@@ -241,7 +241,7 @@ namespace COMPMOD_NAMESPACE
const Reference< XMultiServiceFactory >& _rxServiceManager)
{
OSL_ENSURE(_rxServiceManager.is(), "OModule::getComponentFactory : invalid argument (service manager) !");
- OSL_ENSURE(_rImplementationName.getLength(), "OModule::getComponentFactory : invalid argument (implementation name) !");
+ OSL_ENSURE(!_rImplementationName.isEmpty(), "OModule::getComponentFactory : invalid argument (implementation name) !");
if (!s_pImplementationNames)
{
diff --git a/io/source/stm/odata.cxx b/io/source/stm/odata.cxx
index bb305b8ac692..5583e24b8fe4 100644
--- a/io/source/stm/odata.cxx
+++ b/io/source/stm/odata.cxx
@@ -1366,7 +1366,7 @@ Reference< XPersistObject > OObjectInputStream::readObject() throw (::com::sun:
sal_Bool bLoadSuccesfull = sal_True;
if( nId )
{
- if( aName.getLength() )
+ if( !aName.isEmpty() )
{
// load the object
Reference< XInterface > x = m_rSMgr->createInstanceWithContext( aName, m_rCxt );
diff --git a/registry/inc/registry/registry.hxx b/registry/inc/registry/registry.hxx
index 8845fbdc077b..d3e8b9e9e3f0 100644
--- a/registry/inc/registry/registry.hxx
+++ b/registry/inc/registry/registry.hxx
@@ -1233,7 +1233,7 @@ inline RegError Registry::close()
inline RegError Registry::destroy(const ::rtl::OUString& registryName)
{
RegError ret = m_pApi->destroyRegistry(m_hImpl, registryName.pData);
- if ( !ret && (registryName.getLength() == 0) )
+ if ( !ret && registryName.isEmpty() )
m_hImpl = NULL;
return ret;
}
diff --git a/sal/inc/rtl/bootstrap.hxx b/sal/inc/rtl/bootstrap.hxx
index 874ce5e763e6..1fc594683dcb 100644
--- a/sal/inc/rtl/bootstrap.hxx
+++ b/sal/inc/rtl/bootstrap.hxx
@@ -191,7 +191,7 @@ namespace rtl
inline Bootstrap::Bootstrap(const OUString & iniName)
{
- if(iniName.getLength())
+ if(!iniName.isEmpty())
_handle = rtl_bootstrap_args_open(iniName.pData);
else