aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/qbs/parser/commandlineparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/qbs/parser/commandlineparser.cpp')
-rw-r--r--src/app/qbs/parser/commandlineparser.cpp27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/app/qbs/parser/commandlineparser.cpp b/src/app/qbs/parser/commandlineparser.cpp
index cd74210c7..3c25c51e2 100644
--- a/src/app/qbs/parser/commandlineparser.cpp
+++ b/src/app/qbs/parser/commandlineparser.cpp
@@ -374,20 +374,19 @@ Command *CommandLineParser::CommandLineParserPrivate::commandFromString(const QS
QList<Command *> CommandLineParser::CommandLineParserPrivate::allCommands() const
{
- return QList<Command *>()
- << commandPool.getCommand(GenerateCommandType)
- << commandPool.getCommand(ResolveCommandType)
- << commandPool.getCommand(BuildCommandType)
- << commandPool.getCommand(CleanCommandType)
- << commandPool.getCommand(RunCommandType)
- << commandPool.getCommand(ShellCommandType)
- << commandPool.getCommand(StatusCommandType)
- << commandPool.getCommand(UpdateTimestampsCommandType)
- << commandPool.getCommand(InstallCommandType)
- << commandPool.getCommand(DumpNodesTreeCommandType)
- << commandPool.getCommand(ListProductsCommandType)
- << commandPool.getCommand(VersionCommandType)
- << commandPool.getCommand(HelpCommandType);
+ return {commandPool.getCommand(GenerateCommandType),
+ commandPool.getCommand(ResolveCommandType),
+ commandPool.getCommand(BuildCommandType),
+ commandPool.getCommand(CleanCommandType),
+ commandPool.getCommand(RunCommandType),
+ commandPool.getCommand(ShellCommandType),
+ commandPool.getCommand(StatusCommandType),
+ commandPool.getCommand(UpdateTimestampsCommandType),
+ commandPool.getCommand(InstallCommandType),
+ commandPool.getCommand(DumpNodesTreeCommandType),
+ commandPool.getCommand(ListProductsCommandType),
+ commandPool.getCommand(VersionCommandType),
+ commandPool.getCommand(HelpCommandType)};
}
static QString extractToolDescription(const QString &tool, const QString &output)