diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-14 20:36:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-14 20:37:01 +0000 |
commit | 1565c6bed3289f8f14b311b17ffb2e99d155bddb (patch) | |
tree | 23c37c21d834f588671f1e939d8e4c5ab95b2ded /lotuswordpro | |
parent | 9e83222bb1bf18ebcfa354f958606677a63ab1d9 (diff) |
improve scoping
Change-Id: Ie5a5eacddba747d3b9cff6b8252add54473eb3f2
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwptblformula.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lotuswordpro/source/filter/lwptblformula.cxx b/lotuswordpro/source/filter/lwptblformula.cxx index 5ec8fbab94f9..70eeebb1cf3f 100644 --- a/lotuswordpro/source/filter/lwptblformula.cxx +++ b/lotuswordpro/source/filter/lwptblformula.cxx @@ -262,13 +262,11 @@ void LwpFormulaInfo::MarkUnsupported(sal_uInt16 TokenType) void LwpFormulaInfo::ReadArguments(LwpFormulaFunc& aFunc) { sal_uInt16 NumberOfArguments = m_pObjStrm->QuickReaduInt16(); - sal_uInt16 ArgumentDiskLength, Count; - sal_uInt8 ArgumentType; - for (Count = 0; Count < NumberOfArguments; Count++) + for (sal_uInt16 Count = 0; Count < NumberOfArguments; Count++) { - ArgumentType = (sal_uInt8) m_pObjStrm->QuickReaduInt16(); // written as lushort - ArgumentDiskLength = m_pObjStrm->QuickReaduInt16(); + sal_uInt8 ArgumentType = (sal_uInt8) m_pObjStrm->QuickReaduInt16(); // written as lushort + sal_uInt16 ArgumentDiskLength = m_pObjStrm->QuickReaduInt16(); bool bArgument = true; switch(ArgumentType) |