Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libraries
KOSMIndoorMap
Commits
d680125d
Commit
d680125d
authored
Sep 06, 2021
by
Volker Krause
Browse files
Port from QStringRef to QStringView
parent
0ffac825
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/map-quick/osmelementinformationmodel.cpp
View file @
d680125d
...
...
@@ -744,8 +744,8 @@ QUrl OSMElementInformationModel::wikipediaUrl(const QByteArray &wp) const
QUrl
url
;
url
.
setScheme
(
QStringLiteral
(
"https"
));
url
.
setHost
(
s
.
left
Ref
(
idx
)
+
QLatin1String
(
".wikipedia.org"
));
url
.
setPath
(
QLatin1String
(
"/wiki/"
)
+
s
.
mid
Ref
(
idx
+
1
));
url
.
setHost
(
QStringView
(
s
)
.
left
(
idx
)
+
QLatin1String
(
".wikipedia.org"
));
url
.
setPath
(
QLatin1String
(
"/wiki/"
)
+
QStringView
(
s
)
.
mid
(
idx
+
1
));
return
url
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment