summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/tocread.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-09-09 23:20:45 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-09-09 23:21:42 +0200
commitac015eb157d8d4ac548880f8321400834ff3d02d (patch)
treebe95c23064367684abfbe6613890d507b7b56ca6 /lotuswordpro/source/filter/tocread.cxx
parentWork around a problem when building with system libwpd and libwpg (diff)
downloadcore-ac015eb157d8d4ac548880f8321400834ff3d02d.tar.gz
core-ac015eb157d8d4ac548880f8321400834ff3d02d.zip
Some cppcheck cleaning
Diffstat (limited to 'lotuswordpro/source/filter/tocread.cxx')
-rw-r--r--lotuswordpro/source/filter/tocread.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/tocread.cxx b/lotuswordpro/source/filter/tocread.cxx
index 42d376bcf15b..95027bbed9f6 100644
--- a/lotuswordpro/source/filter/tocread.cxx
+++ b/lotuswordpro/source/filter/tocread.cxx
@@ -151,11 +151,11 @@ CBenTOCReader::SearchForLabel(BenByte * pLabel)
if (Length - CurrOffset > MAX_SEARCH_AMOUNT)
break;
- unsigned long UsedBufferSize;
// If before beginning of buffer
if (CurrOffset - BEN_MAGIC_BYTES_SIZE < BufferStartOffset)
{
+ unsigned long UsedBufferSize;
if (CurrOffset < LABEL_READ_BUFFER_SIZE)
UsedBufferSize = CurrOffset;
else UsedBufferSize = LABEL_READ_BUFFER_SIZE;