Skip to content

Commit dea4107

Browse files
committed
Fix Cppcheck warning
1 parent 7dbfd67 commit dea4107

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/mathlib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ bool MathLib::isFloat(const std::string &s)
106106
if (s.empty())
107107
return false;
108108
enum {START, BASE_PLUSMINUS, BASE_DIGITS1, LEADING_DECIMAL, TRAILING_DECIMAL, BASE_DIGITS2, E, MANTISSA_PLUSMINUS, MANTISSA_DIGITS, F} state = START;
109-
for (std::string::const_iterator it = s.begin(); it != s.end(); it++) {
109+
for (std::string::const_iterator it = s.begin(); it != s.end(); ++it) {
110110
switch (state) {
111111
case START:
112112
if (*it=='+' || *it=='-')

0 commit comments

Comments
 (0)