diff --git a/src/datatypes/location.cpp b/src/datatypes/location.cpp --- a/src/datatypes/location.cpp +++ b/src/datatypes/location.cpp @@ -178,14 +178,14 @@ // keep this ordered (see https://en.wikipedia.org/wiki/List_of_Unicode_characters) struct { - ushort key; + QChar key; const char* replacement; } static const transliteration_map[] = { - { u'<9F>', "ss" }, - { u'', "ae" }, - { u'', "oe" }, - { u'', "oe" }, - { u'', "ue" }, + { '<9F>', "ss" }, + { '', "ae" }, + { '', "oe" }, + { '', "oe" }, + { '', "ue" }, }; static QString applyTransliterations(const QString &s) @@ -197,7 +197,7 @@ const auto it = std::lower_bound(std::begin(transliteration_map), std::end(transliteration_map), c, [](const auto &lhs, const auto rhs) { return QChar(lhs.key) < rhs; }); - if (it != std::end(transliteration_map) && QChar((*it).key) == c) { + if (it != std::end(transliteration_map) && (*it).key == c) { res += QString::fromUtf8((*it).replacement); continue; }