cppcheck: reduce scope

Change-Id: I7a20f89e5a113c6c8760d51475d8198e28ad6aac
This commit is contained in:
Julien Nabet
2013-11-10 14:30:49 +01:00
parent 3296e26be4
commit fd2d0bc88f

View File

@@ -1192,10 +1192,10 @@ sal_Bool XMLTransformerBase::NegPercent( OUString& rValue )
nVal += (rValue[nPos] - sal_Unicode('0'));
nPos++;
}
double nDiv = 1.;
if( nPos < nLen && sal_Unicode('.') == rValue[nPos] )
{
nPos++;
double nDiv = 1.;
while( nPos < nLen &&
sal_Unicode('0') <= rValue[nPos] &&