Commit d2693416 authored by Jan Möbius's avatar Jan Möbius

cppcheck fixes

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17409 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e4b259dd
......@@ -169,11 +169,10 @@ void Matrix4x4Widget::fromValue(QString _from)
void Matrix4x4Widget::editingFinished ()
{
bool ok;
float v;
for (int i = 0; i < 16; i++)
{
v = fields_[i]->text ().toFloat (&ok);
const float v = fields_[i]->text ().toFloat (&ok);
if (ok)
current_[i] = v;
......
Markdown is supported
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