[Libreoffice-commits] core.git: sc/source

Caolán McNamara caolanm at redhat.com
Thu Oct 26 08:09:50 UTC 2017


 sc/source/filter/excel/excel.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 7e87403953dfd54bf1e904ccc7436c6f327a9069
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Oct 25 17:24:09 2017 +0100

    drop old SetBufferSize stuff
    
    Change-Id: I16fc145a4d6378b1ca47cdd24caac9a8da913715
    Reviewed-on: https://gerrit.libreoffice.org/43854
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/filter/excel/excel.cxx b/sc/source/filter/excel/excel.cxx
index 5f9addb25489..cd396d4c299d 100644
--- a/sc/source/filter/excel/excel.cxx
+++ b/sc/source/filter/excel/excel.cxx
@@ -121,8 +121,6 @@ ErrCode ScFormatFilterPluginImpl::ScImportExcel( SfxMedium& rMedium, ScDocument*
     ErrCode eRet = SCERR_IMPORT_UNKNOWN_BIFF;
     if( pBookStrm )
     {
-        pBookStrm->SetBufferSize( 0x8000 );     // still needed?
-
         XclImpRootData aImpData( eBiff, rMedium, xRootStrg, *pDocument, RTL_TEXTENCODING_MS_1252 );
         std::unique_ptr< ImportExcel > xFilter;
         switch( eBiff )
@@ -169,9 +167,8 @@ static ErrCode lcl_ExportExcelBiff( SfxMedium& rMedium, ScDocument *pDocument,
 
     // open the "Book"/"Workbook" stream
     tools::SvRef<SotStorageStream> xStrgStrm = ScfTools::OpenStorageStreamWrite( xRootStrg, aStrmName );
-    if( !xStrgStrm.is() || xStrgStrm->GetError() ) return SCERR_IMPORT_OPEN;
-
-    xStrgStrm->SetBufferSize( 0x8000 );     // still needed?
+    if (!xStrgStrm.is() || xStrgStrm->GetError())
+        return SCERR_IMPORT_OPEN;
 
     ErrCode eRet = SCERR_IMPORT_UNKNOWN_BIFF;
     XclExpRootData aExpData( bBiff8 ? EXC_BIFF8 : EXC_BIFF5, rMedium, xRootStrg, *pDocument, eNach );


More information about the Libreoffice-commits mailing list