Commit d680125d authored by Volker Krause's avatar Volker Krause
Browse files

Port from QStringRef to QStringView

parent 0ffac825
......@@ -744,8 +744,8 @@ QUrl OSMElementInformationModel::wikipediaUrl(const QByteArray &wp) const
QUrl url;
url.setScheme(QStringLiteral("https"));
url.setHost(s.leftRef(idx) + QLatin1String(".wikipedia.org"));
url.setPath(QLatin1String("/wiki/") + s.midRef(idx + 1));
url.setHost(QStringView(s).left(idx) + QLatin1String(".wikipedia.org"));
url.setPath(QLatin1String("/wiki/") + QStringView(s).mid(idx + 1));
return url;
}
......
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