From 0eeb811f5e390c82ff85e61ec9909253a0a03d0d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 23 Mar 2016 11:02:50 +0200 Subject: loplugin:constantparam in connectivity Change-Id: Idfc7d9709a917ce2ebbc06119a906daf4cee8d48 --- connectivity/source/drivers/flat/ETable.cxx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'connectivity/source/drivers/flat') diff --git a/connectivity/source/drivers/flat/ETable.cxx b/connectivity/source/drivers/flat/ETable.cxx index 6600515984d3..2db10071fe29 100644 --- a/connectivity/source/drivers/flat/ETable.cxx +++ b/connectivity/source/drivers/flat/ETable.cxx @@ -577,7 +577,7 @@ sal_Int64 OFlatTable::getSomething( const Sequence< sal_Int8 > & rId ) throw (Ru : OFlatTable_BASE::getSomething(rId); } -bool OFlatTable::fetchRow(OValueRefRow& _rRow, const OSQLColumns & _rCols, bool bIsTable, bool bRetrieveData) +bool OFlatTable::fetchRow(OValueRefRow& _rRow, const OSQLColumns & _rCols, bool bRetrieveData) { *(_rRow->get())[0] = m_nFilePos; @@ -618,16 +618,7 @@ bool OFlatTable::fetchRow(OValueRefRow& _rRow, const OSQLColumns & _rCols, bool } else { - sal_Int32 nType = 0; - if(bIsTable) - { - nType = m_aTypes[i-1]; - } - else - { - Reference< XPropertySet> xColumn = *aIter; - xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE)) >>= nType; - } + sal_Int32 nType = m_aTypes[i-1]; switch(nType) { case DataType::TIMESTAMP: -- cgit