Commit a419504b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

QString::split(..., Qt::SplitBehavior, ...) is already in Qt 5.14

parent 3c3e4f51
Pipeline #47736 passed with stage
in 10 minutes and 26 seconds
......@@ -166,11 +166,7 @@ int main(int argc, char** argv)
if (!parser.value(extOpt).isEmpty()) {
const auto extNames = parser.value(extOpt).split(QLatin1Char(';'),
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QString::SkipEmptyParts);
#else
Qt::SkipEmptyParts);
#endif
std::vector<Extractor> exts;
exts.reserve(extNames.size());
for (const auto &name : extNames) {
......
......@@ -197,11 +197,7 @@ static void iataCodeForNameFragments(const QStringList &fragments, std::vector<I
static QStringList splitToFragments(const QString &name)
{
return name.split(QRegularExpression(QStringLiteral("[ 0-9/'\"\\(\\)&\\,.–„-]")),
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QString::SkipEmptyParts);
#else
Qt::SkipEmptyParts);
#endif
}
}
......
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