diff options
author | Armin Le Grand (Allotropia) <Armin.Le.Grand@me.com> | 2021-11-12 17:16:32 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2022-01-20 14:27:16 +0100 |
commit | 4a0ccb5fec19c2f42b9c206d9c2007c355345eb2 (patch) | |
tree | 34dd4013bd45dee39bdd4aa1a9e0bde6b40d49fd /package | |
parent | 9fbda3ca63c940dac566076eeeb54a7b33f3da3c (diff) |
WASM make test file loading work
Change-Id: Ic34104534c3e0e73791cf867bfb2e1246dc79cf8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128653
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zipapi/ZipFile.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx index 2b298e0ebdf8..3e9d24858df1 100644 --- a/package/source/zipapi/ZipFile.cxx +++ b/package/source/zipapi/ZipFile.cxx @@ -651,11 +651,13 @@ uno::Reference< XInputStream > ZipFile::createStreamForZipEntry( return xSrcStream; uno::Reference<io::XInputStream> xBufStream; +#ifndef EMSCRIPTEN static const sal_Int32 nThreadingThreshold = 10000; if( xSrcStream->available() > nThreadingThreshold ) xBufStream = new XBufferedThreadedStream(xSrcStream, xSrcStream->getSize()); else +#endif xBufStream = new XBufferedStream(xSrcStream); return xBufStream; |