diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-23 16:04:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-25 17:19:36 +0200 |
commit | a006f60b6ae22db6acb57d06167a3c6fd8bc6f1b (patch) | |
tree | 707809080a1fbb95c101de7afe3233f85f0f7bcb /hwpfilter | |
parent | d116894b26f538793a0d5dc5847efd2fb53e7acb (diff) |
loplugin:oncevar in helpcompiler..jvmfwk
Change-Id: Ia9b20a8ca95684cbeb21e3425972c43ba50df3cd
Reviewed-on: https://gerrit.libreoffice.org/39187
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hwpreader.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx index 8a6b6d7e794a..675f2222fcc4 100644 --- a/hwpfilter/source/hwpreader.cxx +++ b/hwpfilter/source/hwpreader.cxx @@ -122,11 +122,11 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportHWP(SvStream &rStream) { std::unique_ptr<HStream> stream(new HStream); byte aData[32768]; - std::size_t nRead, nBlock = 32768; + std::size_t nRead; while (true) { - nRead = rStream.ReadBytes(aData, nBlock); + nRead = rStream.ReadBytes(aData, 32768); if (nRead == 0) break; stream->addData(aData, (int)nRead); @@ -153,10 +153,10 @@ sal_Bool HwpReader::filter(const Sequence< PropertyValue >& rDescriptor) std::unique_ptr<HStream> stream(new HStream); Sequence < sal_Int8 > aBuffer; - sal_Int32 nRead, nBlock = 32768, nTotal = 0; + sal_Int32 nRead, nTotal = 0; while( true ) { - nRead = xInputStream->readBytes(aBuffer, nBlock); + nRead = xInputStream->readBytes(aBuffer, 32768); if( nRead == 0 ) break; stream->addData( reinterpret_cast<const byte *>(aBuffer.getConstArray()), nRead ); |