diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-11-16 10:52:45 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-11-16 10:52:45 +0100 |
commit | 4ea65db333422e58b8af1e4d5faff0849d856c37 (patch) | |
tree | d9a8dd9826f26348b5ce87a99c2bf5d6bb9936fe | |
parent | cppcheck: Prefer prefix ++/-- operators for non-primitive types (diff) | |
download | core-4ea65db333422e58b8af1e4d5faff0849d856c37.tar.gz core-4ea65db333422e58b8af1e4d5faff0849d856c37.zip |
cppcheck: Array index is used before limits check
Change-Id: I30154dd9504b70dc3212af3ac1d88dfc9a9d8396
-rw-r--r-- | forms/source/xforms/datatypes.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/xforms/datatypes.cxx b/forms/source/xforms/datatypes.cxx index f2fdb793d40a..0c24ace5525b 100644 --- a/forms/source/xforms/datatypes.cxx +++ b/forms/source/xforms/datatypes.cxx @@ -691,7 +691,7 @@ namespace xforms sal_Int32 nTotalDigits = 0; sal_Int32 nFractionDigits = 0; const sal_Unicode* pValue = rValue.getStr(); - for( ; pValue[n] != '.' && n < nLength; n++ ) + for( ; n < nLength && pValue[n] != '.'; n++ ) if( pValue[n] >= '0' && pValue[n] <= '9') nTotalDigits++; |