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

NO_CHANGELOG
parent c8a0a678
......@@ -1820,11 +1820,7 @@ void ICalFormatImpl::readIncidence(icalcomponent *parent, const Incidence::Ptr &
// We can't change that -- in order to retain backwards compatibility.
text = icalproperty_get_categories(p);
const QString val = QString::fromUtf8(text);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const QStringList lstVal = val.split(QLatin1Char(','), QString::SkipEmptyParts);
#else
const QStringList lstVal = val.split(QLatin1Char(','), Qt::SkipEmptyParts);
#endif
for (const QString &cat : lstVal) {
// ensure no duplicates
if (!categories.contains(cat)) {
......
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