diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-05-12 15:36:30 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-05-13 17:29:46 +0000 |
commit | b12ef43863228c5b2f5b2c189e309f2228237120 (patch) | |
tree | 67060eaeb5a0ee6d7a3b295720b6110048a5683f /vcl | |
parent | 4295dfd22cef24e881a4f769f59bf6fdcbc12f10 (diff) |
cppcheck: fix arrayIndexThenCheck in vcl
Change-Id: Id7258dd35c131c2c8151bc5e0f97076241e6d10f
Reviewed-on: https://gerrit.libreoffice.org/3868
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/field.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index c0356781a55f..87043dd86f1a 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -201,7 +201,7 @@ static bool ImplNumericGetValue( const OUString& rStr, sal_Int64& rValue, { // check if string is equivalent to zero sal_Int16 nIndex = bNegative ? 1 : 0; - while( aStr[nIndex] == '0' && nIndex < aStr.getLength() ) + while (nIndex < aStr.getLength() && aStr[nIndex] == '0') ++nIndex; if( nIndex < aStr.getLength() ) { |