summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwptblformula.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-19 08:47:29 +0100
committerNoel Grandin <noelgrandin@gmail.com>2014-12-19 11:00:32 +0000
commitd41bc0f7b328ed6c69b2c2822de00165cdc62c61 (patch)
treef92cb1c15af79b7100e90d713eaa3ee6adcd5115 /lotuswordpro/source/filter/lwptblformula.cxx
parenticu#11451 bidi, the gift that keeps on giving (diff)
downloadcore-d41bc0f7b328ed6c69b2c2822de00165cdc62c61.tar.gz
core-d41bc0f7b328ed6c69b2c2822de00165cdc62c61.zip
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: Idcedd908c653d5a5700884f233ad134dde8be018 Reviewed-on: https://gerrit.libreoffice.org/13540 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'lotuswordpro/source/filter/lwptblformula.cxx')
-rw-r--r--lotuswordpro/source/filter/lwptblformula.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwptblformula.cxx b/lotuswordpro/source/filter/lwptblformula.cxx
index 4f6bca048031..eda2b45fa55e 100644
--- a/lotuswordpro/source/filter/lwptblformula.cxx
+++ b/lotuswordpro/source/filter/lwptblformula.cxx
@@ -310,14 +310,13 @@ bool LwpFormulaInfo::ReadArguments(LwpFormulaFunc& aFunc)
sal_uInt16 NumberOfArguments = m_pObjStrm->QuickReaduInt16();
sal_uInt16 ArgumentDiskLength, Count;
sal_uInt8 ArgumentType;
- bool bArgument = false;
bool readSucceeded = true;
for (Count = 0; Count < NumberOfArguments; Count++)
{
ArgumentType = (sal_uInt8) m_pObjStrm->QuickReaduInt16(); // written as lushort
ArgumentDiskLength = m_pObjStrm->QuickReaduInt16();
- bArgument = true;
+ bool bArgument = true;
switch(ArgumentType)
{