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