forked from qt-creator/qt-creator
Use Utils::SkipEmptyParts instead of the deprecated one in QString
- Qt 5.14 introduced Qt::Keep/SkipEmptyParts and deprecated these in QString namespace. - Qt Creator defined Utils::SkipEmptyParts conditional on the Qt version, so we use that for flexibility. - Remove any explicit references to QString::KeepEmptyParts, as it's a default value. Change-Id: I72c65e4901ebc4c5422d4835e63fe23fb6ef28ff Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -59,7 +59,7 @@ void FossilJsExtension::parseArgOptions(const QStringList &args, QMap<QString, Q
|
||||
foreach (const QString &arg, args) {
|
||||
if (arg.isEmpty()) continue;
|
||||
|
||||
QStringList opt = arg.split('|', QString::KeepEmptyParts);
|
||||
QStringList opt = arg.split('|'); //keep empty parts
|
||||
options.insert(opt[0], opt.size() > 1 ? opt[1] : QString());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user