From 1777c09a0781710c309e500f680e6f95c080ca86 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Wed, 14 Dec 2011 23:13:36 -0200 Subject: Fix for fdo43460 Part IX getLength() to isEmpty() Part IX Module connectivity --- connectivity/source/drivers/calc/CConnection.cxx | 2 +- connectivity/source/drivers/calc/CTable.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'connectivity/source/drivers/calc') diff --git a/connectivity/source/drivers/calc/CConnection.cxx b/connectivity/source/drivers/calc/CConnection.cxx index 74884912aad1..e7ac50dc4211 100644 --- a/connectivity/source/drivers/calc/CConnection.cxx +++ b/connectivity/source/drivers/calc/CConnection.cxx @@ -127,7 +127,7 @@ Reference< XSpreadsheetDocument> OCalcConnection::acquireDoc() aArgs[1].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ReadOnly")); aArgs[1].Value <<= (sal_Bool) sal_True; - if ( m_sPassword.getLength() ) + if ( !m_sPassword.isEmpty() ) { const sal_Int32 nPos = aArgs.getLength(); aArgs.realloc(nPos+1); diff --git a/connectivity/source/drivers/calc/CTable.cxx b/connectivity/source/drivers/calc/CTable.cxx index 3448d49648b0..f9e5413c9a37 100644 --- a/connectivity/source/drivers/calc/CTable.cxx +++ b/connectivity/source/drivers/calc/CTable.cxx @@ -477,7 +477,7 @@ void OCalcTable::fillColumns() lcl_GetColumnInfo( m_xSheet, m_xFormats, m_nStartCol + i, m_nStartRow, m_bHasHeaders, aColumnName, eType, bCurrency ); - if ( !aColumnName.getLength() ) + if ( aColumnName.isEmpty() ) aColumnName = lcl_GetColumnStr( i ); sal_Int32 nPrecision = 0; //! ... -- cgit