forked from qt-creator/qt-creator
Utils: Drop Utils::SkipEmptyParts again
We require Qt 5.14 nowadays. Change-Id: Iff245257d3cb19207007c0445ee13814e66152dd Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -312,7 +312,7 @@ public:
|
||||
}
|
||||
|
||||
Core::SearchResultItem item;
|
||||
item.path = scope.split(QLatin1String("::"), Utils::SkipEmptyParts);
|
||||
item.path = scope.split(QLatin1String("::"), Qt::SkipEmptyParts);
|
||||
item.text = text;
|
||||
item.icon = info->icon();
|
||||
item.userData = QVariant::fromValue(info);
|
||||
|
||||
@@ -255,7 +255,7 @@ static QString validateDiagnosticOptions(const QStringList &options)
|
||||
|
||||
static QStringList normalizeDiagnosticInputOptions(const QString &options)
|
||||
{
|
||||
return options.simplified().split(QLatin1Char(' '), Utils::SkipEmptyParts);
|
||||
return options.simplified().split(QLatin1Char(' '), Qt::SkipEmptyParts);
|
||||
}
|
||||
|
||||
void ClangDiagnosticConfigsWidget::onClangOnlyOptionsChanged()
|
||||
|
||||
@@ -760,7 +760,7 @@ void CompilerOptionsBuilder::evaluateCompilerFlags()
|
||||
{
|
||||
static QStringList userBlackList = QString::fromLocal8Bit(
|
||||
qgetenv("QTC_CLANG_CMD_OPTIONS_BLACKLIST"))
|
||||
.split(';', Utils::SkipEmptyParts);
|
||||
.split(';', Qt::SkipEmptyParts);
|
||||
|
||||
const Utils::Id &toolChain = m_projectPart.toolchainType;
|
||||
bool containsDriverMode = false;
|
||||
|
||||
@@ -308,7 +308,7 @@ void CppFileSettingsWidget::setLicenseTemplatePath(const QString &lp)
|
||||
static QStringList trimmedPaths(const QString &paths)
|
||||
{
|
||||
QStringList res;
|
||||
foreach (const QString &path, paths.split(QLatin1Char(','), Utils::SkipEmptyParts))
|
||||
foreach (const QString &path, paths.split(QLatin1Char(','), Qt::SkipEmptyParts))
|
||||
res << path.trimmed();
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user