From be17f7f30aee16cea220d900cb6573e677c4b531 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 3 Jan 2017 11:32:19 +0200 Subject: [PATCH] Cppcheck warning. --HG-- branch : develop --- src/libs/qmuparser/qmudef.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libs/qmuparser/qmudef.cpp b/src/libs/qmuparser/qmudef.cpp index a588db1e9..9db7512f6 100644 --- a/src/libs/qmuparser/qmudef.cpp +++ b/src/libs/qmuparser/qmudef.cpp @@ -214,7 +214,6 @@ int ReadVal(const QString &formula, qreal &val, const QLocale &locale, const QCh }; int state = State::Init; // parse state - int input; // input token QString buf; int index = 0; // start position @@ -222,7 +221,7 @@ int ReadVal(const QString &formula, qreal &val, const QLocale &locale, const QCh while ( true ) { - input = CheckChar(c, locale, decimal, thousand); + const int input = CheckChar(c, locale, decimal, thousand);// input token state = table[state][input];