diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-23 11:02:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-23 11:22:34 +0200 |
commit | 0eeb811f5e390c82ff85e61ec9909253a0a03d0d (patch) | |
tree | 1419a2581b796e0000cb577f2c6a2f79ea201c48 /connectivity/source/drivers/flat | |
parent | loplugin:constantparam in cui (diff) | |
download | core-0eeb811f5e390c82ff85e61ec9909253a0a03d0d.tar.gz core-0eeb811f5e390c82ff85e61ec9909253a0a03d0d.zip |
loplugin:constantparam in connectivity
Change-Id: Idfc7d9709a917ce2ebbc06119a906daf4cee8d48
Diffstat (limited to 'connectivity/source/drivers/flat')
-rw-r--r-- | connectivity/source/drivers/flat/ETable.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
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: |