Commit 0ee8973a authored by Patrick José Pereira's avatar Patrick José Pereira

Use QStringRef to avoid temporary heap allocations

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 7a391b7b
......@@ -57,7 +57,7 @@ QString ULogParser::extractArraySize(QString &typeNameFull, int &arraySize)
return typeNameFull;
}
arraySize = typeNameFull.mid(startPos + 1, endPos - startPos - 1).toInt();
arraySize = typeNameFull.midRef(startPos + 1, endPos - startPos - 1).toInt();
return typeNameFull.mid(0, startPos);
}
......
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