Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 0c07a03e authored by Laurent Montel's avatar Laurent Montel 😁

Reserve size

parent bb591ba9
......@@ -128,7 +128,9 @@ RelationMember parseMemberUrl(const QString &string)
}
QUrl url(QUrl::fromEncoded(string.toLatin1()));
QList<QByteArray> path;
Q_FOREACH (const QByteArray &fragment, url.encodedPath().split('/')) {
const QList<QByteArray> fragments = url.encodedPath().split('/');
path.reserve(fragments.count());
for (const QByteArray &fragment : fragments) {
path.append(ownUrlDecode(fragment).toUtf8());
}
// qDebug() << path;
......
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