Cppcheck warning.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-01-03 11:32:19 +02:00
parent da6cd92b22
commit be17f7f30a

View file

@ -214,7 +214,6 @@ int ReadVal(const QString &formula, qreal &val, const QLocale &locale, const QCh
}; };
int state = State::Init; // parse state int state = State::Init; // parse state
int input; // input token
QString buf; QString buf;
int index = 0; // start position int index = 0; // start position
@ -222,7 +221,7 @@ int ReadVal(const QString &formula, qreal &val, const QLocale &locale, const QCh
while ( true ) while ( true )
{ {
input = CheckChar(c, locale, decimal, thousand); const int input = CheckChar(c, locale, decimal, thousand);// input token
state = table[state][input]; state = table[state][input];