aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/qbs/parser/commandlineoption.cpp
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@petroules.com>2015-02-26 07:53:00 -0800
committerJake Petroules <jake.petroules@petroules.com>2015-03-04 17:13:30 +0000
commit6f5cc63b8359657c26c86161568068ac0ef40e5e (patch)
treea7c8340692a95c6f188be5629f22bbb680a03e0c /src/app/qbs/parser/commandlineoption.cpp
parent17c37f4ff596d2cc3ecc0f0cdc2189f86048f140 (diff)
Fix command echo mode for the generator command.
Change-Id: I994e834985087ee7af832ab1d11c66866d6e9a7e Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/app/qbs/parser/commandlineoption.cpp')
-rw-r--r--src/app/qbs/parser/commandlineoption.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/app/qbs/parser/commandlineoption.cpp b/src/app/qbs/parser/commandlineoption.cpp
index 88a93bd94..bd71ae794 100644
--- a/src/app/qbs/parser/commandlineoption.cpp
+++ b/src/app/qbs/parser/commandlineoption.cpp
@@ -41,20 +41,14 @@ CommandLineOption::~CommandLineOption()
{
}
-bool CommandLineOption::wasSet() const
-{
- return m_wasSet;
-}
-
void CommandLineOption::parse(CommandType command, const QString &representation, QStringList &input)
{
m_command = command;
- m_wasSet = true;
doParse(representation, input);
}
CommandLineOption::CommandLineOption()
- : m_command(static_cast<CommandType>(-1)), m_wasSet(false)
+ : m_command(static_cast<CommandType>(-1))
{
}
@@ -575,7 +569,7 @@ void SettingsDirOption::doParse(const QString &representation, QStringList &inpu
}
CommandEchoModeOption::CommandEchoModeOption()
- : m_echoMode(defaultCommandEchoMode())
+ : m_echoMode(static_cast<CommandEchoMode>(-1))
{
}