Fix Qt 5.15 deprecation warnings for QString::SkipEmptyParts

Task-number: QTCREATORBUG-24098
Change-Id: I03ee6811df4346754bbd652f2c3c97477f9cdb7e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2020-06-16 16:32:50 +02:00
parent 592e20cf0f
commit 8a697cde64
3 changed files with 10 additions and 2 deletions

View File

@@ -31,6 +31,7 @@
#include <utils/algorithm.h>
#include <utils/hostosinfo.h>
#include <utils/optional.h>
#include <utils/stringutils.h>
#include <QDir>
#include <QRegularExpression>
@@ -236,7 +237,7 @@ QStringList splitCommandLine(QString commandLine, QSet<QString> &flagsCache)
}
} else { // If 's' is outside quotes ...
for (const QString &flag :
part.split(QRegularExpression("\\s+"), QString::SkipEmptyParts)) {
part.split(QRegularExpression("\\s+"), Utils::SkipEmptyParts)) {
auto flagIt = flagsCache.insert(flag);
result.append(*flagIt);
}