forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user