From e98e738a82885b6e7fb643bf407e504fe095803e Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 11 Apr 2014 20:00:14 +0200 Subject: replace some SvStream seeking with calls to remainingSize() Change-Id: I2905e98425b9991d6138ab0adc15083d313ca445 --- connectivity/source/drivers/flat/ETable.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'connectivity/source') 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 : -- cgit