Various Plugins: Simplify return QStringList statements

Amends 925bb2ca31

Change-Id: I57bee33cb7acd0ab1cdcfb6897a4847b912b4c97
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2023-08-02 08:01:11 +02:00
parent e9721641fc
commit 82712e12f8
14 changed files with 21 additions and 26 deletions

View File

@@ -129,11 +129,11 @@ FilePath IosDsymBuildStep::defaultCommand() const
QStringList IosDsymBuildStep::defaultCleanCmdList() const
{
auto runConf = qobject_cast<IosRunConfiguration *>(target()->activeRunConfiguration());
QTC_ASSERT(runConf, return QStringList("echo"));
QTC_ASSERT(runConf, return {"echo"});
QString dsymPath = runConf->bundleDirectory().toUserOutput();
dsymPath.chop(4);
dsymPath.append(".dSYM");
return QStringList({"rm", "-rf", dsymPath});
return {"rm", "-rf", dsymPath};
}
QStringList IosDsymBuildStep::defaultCmdList() const
@@ -144,11 +144,11 @@ QStringList IosDsymBuildStep::defaultCmdList() const
if (dsymUtilPath.exists())
dsymutilCmd = dsymUtilPath.toUserOutput();
auto runConf = qobject_cast<const IosRunConfiguration *>(target()->activeRunConfiguration());
QTC_ASSERT(runConf, return QStringList("echo"));
QTC_ASSERT(runConf, return {"echo"});
QString dsymPath = runConf->bundleDirectory().toUserOutput();
dsymPath.chop(4);
dsymPath.append(".dSYM");
return QStringList({dsymutilCmd, "-o", dsymPath, runConf->localExecutable().toUserOutput()});
return {dsymutilCmd, "-o", dsymPath, runConf->localExecutable().toUserOutput()};
}
FilePath IosDsymBuildStep::command() const