summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <[email protected]>2016-07-10 20:21:22 +0200
committerFriedrich W. H. Kossebau <[email protected]>2016-07-10 20:21:22 +0200
commite6f9bcd6a6deae013da2a0c8ae6712f6b7a5fa65 (patch)
treedb0cea70067c79e96f1e245aaf2e6ad6a63598c2
parent73b35a653c0e31c7893ba0a7ef8333cfc9dfc03e (diff)
Remove broken string conversion
-rw-r--r--src/lib/marble/geodata/data/GeoDataPlacemark.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/marble/geodata/data/GeoDataPlacemark.cpp b/src/lib/marble/geodata/data/GeoDataPlacemark.cpp
index caa3f86..93e5efb 100644
--- a/src/lib/marble/geodata/data/GeoDataPlacemark.cpp
+++ b/src/lib/marble/geodata/data/GeoDataPlacemark.cpp
@@ -300,11 +300,10 @@ QString GeoDataPlacemark::displayName() const
OsmPlacemarkData const &data = osmData();
QStringList const uiLanguages = QLocale::system().uiLanguages();
foreach (const QString &uiLanguage, uiLanguages) {
- QString const language = uiLanguage.toLocal8Bit().constData();
for (auto tagIter = data.tagsBegin(), end = data.tagsEnd(); tagIter != end; ++tagIter) {
if (tagIter.key().startsWith(QLatin1String("name:"))) {
QStringRef const tagLanguage = tagIter.key().midRef(5);
- if (tagLanguage == language) {
+ if (tagLanguage == uiLanguage) {
return tagIter.value();
}
}