diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-22 17:57:48 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-12-23 05:53:41 +0000 |
commit | ea644f0e90d0c9585e73bdec240908803a38d4a6 (patch) | |
tree | df140769eaf45d4205d4ac50147809597e3e6d73 /sdext/source | |
parent | a6c0583675b6fe4210ae8249728fe5d4df125f5c (diff) |
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: I404f121ee2e5020359a662f54ffe341f466cd1d5
Reviewed-on: https://gerrit.libreoffice.org/13608
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx index 129f2b9fe871..4484e8f50961 100644 --- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx @@ -149,11 +149,10 @@ bool ExtractJpegData(Stream* str, OutputBuffer& outBuf) int bytesToLen = -1; bool collectBytes = false; int startOfScan = 0; - int b2 = -1; int b1 = -1; for (; ; ) { - b2 = b1; + const int b2 = b1; b1 = str->getChar(); if (b1 == -1) |