Kaydet (Commit) 55811254 authored tarafından Olivier Hallot's avatar Olivier Hallot

Fix for fdo43460 Part XLIV getLength() to isEmpty()

Part XLIV
many modules(inc's)
üst 4a0af6a0
......@@ -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; }
......
......@@ -104,7 +104,7 @@ namespace connectivity
m_Writable(_aWritable),
m_DefinitelyWritable(_aDefinitelyWritable)
{
if(!m_ColumnLabel.getLength())
if(m_ColumnLabel.isEmpty())
m_ColumnLabel = _aColumnName;
}
......
......@@ -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)
{
......
......@@ -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 );
......
......@@ -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;
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment