Commit a8d87d7b authored by Frederik Schwarzer's avatar Frederik Schwarzer

Use QString midRef instead of mid.

It does not create a temporary string.
parent 6b53abdc
......@@ -180,15 +180,15 @@ bool BoardLayout::loadBoardLayout(const QString &from)
continue;
}
if (s[0] == 'w') {
m_width = s.mid(1).toInt();
m_width = s.midRef(1).toInt();
continue;
}
if (s[0] == 'h') {
m_height = s.mid(1).toInt();
m_height = s.midRef(1).toInt();
continue;
}
if (s[0] == 'd') {
m_depth = s.mid(1).toInt();
m_depth = s.midRef(1).toInt();
continue;
}
all += s;
......
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