diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2015-08-22 14:10:55 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-08-23 06:04:49 +0000 |
commit | 9beb2bedc0f65b90cd35f7fa6c9b53ee6729a0c4 (patch) | |
tree | 68c6d690a594433f3ab5ce8ded149d95cbc92b69 /sc/source/filter/qpro | |
parent | 90b086e480a83c62edafaf13bdf4a02079a7860c (diff) |
tdf#39440 sc: reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: Ia7f58c24429310b66f4464d8ba8b4f2e5c6fef38
Reviewed-on: https://gerrit.libreoffice.org/17922
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/filter/qpro')
-rw-r--r-- | sc/source/filter/qpro/qproform.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/qpro/qproform.cxx b/sc/source/filter/qpro/qproform.cxx index 4a70e875e254..95e4db36549f 100644 --- a/sc/source/filter/qpro/qproform.cxx +++ b/sc/source/filter/qpro/qproform.cxx @@ -189,7 +189,6 @@ ConvErr QProToSc::Convert( const ScTokenArray*& pArray, sal_uInt16 /*nLen*/, con FUNC_TYPE eType; DefTokenId eOc; double nFloatArray[ nBufSize ] = {0}; - double nFloat; const sal_Char* pExtString = 0; aCRD.InitFlags(); @@ -212,6 +211,7 @@ ConvErr QProToSc::Convert( const ScTokenArray*& pArray, sal_uInt16 /*nLen*/, con if( nFmla[ i ] == 0x00 ) { + double nFloat; maIn.ReadDouble( nFloat ); nFloatArray[ nFloatCount ] = nFloat; SAFEDEC_OR_RET(nRef, 8, ConvErrCount); |