Commit 0ed19179 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

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

parent db57bc8d
Pipeline #47724 passed with stage
in 11 minutes and 57 seconds
...@@ -31,12 +31,7 @@ inline QStringList &unquote(QStringList &strings) ...@@ -31,12 +31,7 @@ inline QStringList &unquote(QStringList &strings)
QStringList CategoryHierarchyReader::path(QString string) QStringList CategoryHierarchyReader::path(QString string)
{ {
QStringList _path QStringList _path = quote(string).split(CategoryConfig::categorySeparator, Qt::SkipEmptyParts);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
= quote(string).split(CategoryConfig::categorySeparator, QString::SkipEmptyParts);
#else
= quote(string).split(CategoryConfig::categorySeparator, Qt::SkipEmptyParts);
#endif
return unquote(_path); return unquote(_path);
} }
......
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