From dea4107245f84b8af627cb7fb82414edb6e9092a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 26 Feb 2014 06:38:48 +0100 Subject: [PATCH] Fix Cppcheck warning --- lib/mathlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mathlib.cpp b/lib/mathlib.cpp index c10f02f01..c540c73e8 100644 --- a/lib/mathlib.cpp +++ b/lib/mathlib.cpp @@ -106,7 +106,7 @@ bool MathLib::isFloat(const std::string &s) if (s.empty()) return false; enum {START, BASE_PLUSMINUS, BASE_DIGITS1, LEADING_DECIMAL, TRAILING_DECIMAL, BASE_DIGITS2, E, MANTISSA_PLUSMINUS, MANTISSA_DIGITS, F} state = START; - for (std::string::const_iterator it = s.begin(); it != s.end(); it++) { + for (std::string::const_iterator it = s.begin(); it != s.end(); ++it) { switch (state) { case START: if (*it=='+' || *it=='-')