Commit a31c5508 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization; use remove(..)

parent 4d7662bf
Pipeline #36148 passed with stage
in 38 minutes and 9 seconds
......@@ -175,7 +175,7 @@ QVector<QPair<QString, QString> > parseMailtoUrl(const QUrl &url)
//Workaround line with # see bug 406208
const int indexOf = str.indexOf(QLatin1Char('?'));
if (indexOf != -1) {
str = str.right(str.length() - indexOf - 1);
str.remove(0, indexOf + 1);
QUrlQuery query(str);
const auto listQuery = query.queryItems(QUrl::FullyDecoded);
for (const auto &queryItem : listQuery) {
......
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