Kaydet (Commit) b12ef438 authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Norbert Thiebaud

cppcheck: fix arrayIndexThenCheck in vcl

Change-Id: Id7258dd35c131c2c8151bc5e0f97076241e6d10f
Reviewed-on: https://gerrit.libreoffice.org/3868Reviewed-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
Tested-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
üst 4295dfd2
......@@ -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() )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment