Commit d058e60c authored by Matthias Möller's avatar Matthias Möller
Browse files

fix cppcheck warning

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