diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-19 13:06:58 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-12-20 09:18:28 +0000 |
commit | 8abd002240e8d7666300bf6fa832a28988e9ed0a (patch) | |
tree | 1b108c029f895410f0ba50e61d3337a80dbfcd1d /sax | |
parent | aeeff83595a176805d74ad4e35d946eb6a8e1b25 (diff) |
fdo#39440 sax, sc: reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: I589e13ee086cffee481954215a97960db656e633
Reviewed-on: https://gerrit.libreoffice.org/13548
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/converter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index a83126908c48..e4d3c962a830 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -84,10 +84,10 @@ bool Converter::convertMeasure( sal_Int32& rValue, nVal += (rString[nPos] - '0'); nPos++; } - double nDiv = 1.; if( nPos < nLen && '.' == rString[nPos] ) { nPos++; + double nDiv = 1.; while( nPos < nLen && '0' <= rString[nPos] && |