diff options
author | Gökhan Gurbetoğlu <gokhan.gurbetoglu@pardus.org.tr> | 2018-04-16 15:33:03 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-17 08:14:56 +0200 |
commit | 0f166ef5240ee155bf2544e6bc3c985b1e3bf646 (patch) | |
tree | ece7b6b86e2426f3ec794130b1dfe2f4b29bf97d /hwpfilter | |
parent | b9f9f8253f89151beed27499e6db5c11a7d81eba (diff) |
cppcheck - fix variableScope in some files
Reduced the scope of some variables in source.
Change-Id: Ib3b521ca5df8b9b254b51eab5f1d7040d6cfd846
Reviewed-on: https://gerrit.libreoffice.org/52974
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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx index d20c1b8ea783..2b5e5145ae5b 100644 --- a/hwpfilter/source/hwpreader.cxx +++ b/hwpfilter/source/hwpreader.cxx @@ -122,11 +122,10 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportHWP(SvStream &rStream) { std::unique_ptr<HStream> stream(new HStream); byte aData[32768]; - std::size_t nRead; while (true) { - nRead = rStream.ReadBytes(aData, 32768); + std::size_t nRead = rStream.ReadBytes(aData, 32768); if (nRead == 0) break; stream->addData(aData, static_cast<int>(nRead)); |