Commit 47d48eb3 authored by Marius Pa's avatar Marius Pa
Browse files

score local variable shadows outer function

Fix cppcheck issues "src/game/score.cpp:26: Local variable 'upperBound'
shadows outer function.
src/game/score.cpp:29: Local variable 'lowerBound' shadows outer function".
parent 920639f8
Pipeline #259499 passed with stage
in 6 minutes and 39 seconds
......@@ -23,12 +23,12 @@ Score::Score(const QString &score)
#else
m_score = score.mid(2, i - 1).toFloat();
#endif
QString upperBound = score.section(QLatin1Char(' '), 3, 3);
upperBound.chop(1);
m_upperBound = upperBound.toFloat();
QString lowerBound = score.section(QLatin1Char(' '), 5, 5);
lowerBound.chop(1);
m_lowerBound = lowerBound.toFloat();
QString newUpperBound = score.section(QLatin1Char(' '), 3, 3);
newUpperBound.chop(1);
m_upperBound = newUpperBound.toFloat();
QString newLowerBound = score.section(QLatin1Char(' '), 5, 5);
newLowerBound.chop(1);
m_lowerBound = newLowerBound.toFloat();
}
}
......
Supports Markdown
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