Commit e24d1897 authored by Frederik Schwarzer's avatar Frederik Schwarzer

Use midRef() for efficiency reasons

parent a516f6ae
......@@ -32,7 +32,7 @@ Score::Score(const QString &score)
m_color = 'B';
}
int i = score.indexOf(' ');
m_score = score.mid(2, i - 1).toFloat();
m_score = score.midRef(2, i - 1).toFloat();
QString upperBound = score.section(' ', 3, 3);
upperBound.chop(1);
m_upperBound = upperBound.toFloat();
......
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