From 8abd002240e8d7666300bf6fa832a28988e9ed0a Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Fri, 19 Dec 2014 13:06:58 +0100 Subject: 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 Tested-by: Noel Grandin --- sax/source/tools/converter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sax/source/tools') 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] && -- cgit