Commit 0fee5278 authored by Matthias Möller's avatar Matthias Möller

fix cppcheck warning

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@21138 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 601a0989
......@@ -74,10 +74,10 @@ namespace Utils
{
//we have a negative float
sign = sign * -1.0;
it++;
++it;
}
for (;it != end;it++)
for (;it != end;++it)
{
//we have read a digit
if(it->isDigit())
......@@ -88,19 +88,19 @@ namespace Utils
else
{
//stop counting the highPart if its not a digit
it++;
++it;
break;
}
}
for (;it != end;it++)
for (;it != end;++it)
{
//we assume to have read a digit
if(it->isDigit())
{
lowPart *=10;
lowPart += it->digitValue();
n++;
++n;
}
else
{
......@@ -137,10 +137,10 @@ namespace Utils
{
//we have a negative float
sign = sign * -1.0;
it++;
++it;
}
for (;it != end;it++)
for (;it != end;++it)
{
//we have read a digit
if(isdigit(*it))
......@@ -151,19 +151,19 @@ namespace Utils
else
{
//stop counting the highPart if its not a digit
it++;
++it;
break;
}
}
for (;it != end;it++)
for (;it != end;++it)
{
//we assume to have read a digit
if(isdigit(*it))
{
lowPart *=10;
lowPart += (int)(*it - '0');
n++;
++n;
}
else
{
......@@ -203,10 +203,10 @@ namespace Utils
{
//we have a negative float
sign = sign * -1.0;
it++;
++it;
}
for (;it != end;it++)
for (;it != end;++it)
{
//we have read a digit
if(it->isDigit())
......@@ -217,19 +217,19 @@ namespace Utils
else
{
//stop counting the highPart if its not a digit
it++;
++it;
break;
}
}
for (;it != end;it++)
for (;it != end;++it)
{
//we assume to have read a digit
if(it->isDigit())
{
lowPart *=10;
lowPart += it->digitValue();
n++;
++n;
}
else
{
......
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