diff options
Diffstat (limited to 'connectivity/source/drivers/flat')
-rw-r--r-- | connectivity/source/drivers/flat/ETable.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/connectivity/source/drivers/flat/ETable.cxx b/connectivity/source/drivers/flat/ETable.cxx index e156b1d0563e..c58376a48711 100644 --- a/connectivity/source/drivers/flat/ETable.cxx +++ b/connectivity/source/drivers/flat/ETable.cxx @@ -455,9 +455,7 @@ void OFlatTable::construct() if(m_pFileStream) { - m_pFileStream->Seek(STREAM_SEEK_TO_END); - sal_Size nSize = m_pFileStream->Tell(); - m_pFileStream->Seek(STREAM_SEEK_TO_BEGIN); + sal_uInt64 const nSize = m_pFileStream->remainingSize(); // Buffersize is dependent on the file-size m_pFileStream->SetBufferSize(nSize > 1000000 ? 32768 : |