Commit 8b20b474 authored by Volker Krause's avatar Volker Krause
Browse files

Fix build with Qt 5.15

parent 2864861a
...@@ -226,7 +226,13 @@ void KItinerary::Generator::AirportDbGenerator::indexNames() ...@@ -226,7 +226,13 @@ void KItinerary::Generator::AirportDbGenerator::indexNames()
{ {
for (auto it = m_airportMap.begin(); it != m_airportMap.end(); ++it) { for (auto it = m_airportMap.begin(); it != m_airportMap.end(); ++it) {
auto l = StringUtil::normalize(it.value().label + QLatin1Char(' ') + it.value().alias) auto l = StringUtil::normalize(it.value().label + QLatin1Char(' ') + it.value().alias)
.split(QRegularExpression(QStringLiteral("[ 0-9/'\"\\(\\)&\\,.–„-]")), QString::SkipEmptyParts); .split(QRegularExpression(QStringLiteral("[ 0-9/'\"\\(\\)&\\,.–„-]")),
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
Qt::SkipEmptyParts
#else
QString::SkipEmptyParts
#endif
);
std::for_each(l.begin(), l.end(), [](QString &s) { std::for_each(l.begin(), l.end(), [](QString &s) {
s = s.toCaseFolded(); s = s.toCaseFolded();
}); });
......
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