summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-10-30 09:58:23 +0100
committerLars Knoll <lars.knoll@digia.com>2014-10-30 15:54:45 +0100
commit809119d7a42ebfa5dec9c842e510e569e385513a (patch)
tree7f1acbe97b83c27deafb986905776b67dfc64bc2
parent09d62813fcb42660888284168540e74a187913aa (diff)
downloadqt4-tools-809119d7a42ebfa5dec9c842e510e569e385513a.tar.gz
Fix compiler warning
Already fixed in Qt 5 Task-number: QTBUG-42032 Change-Id: I7ed7d955115e875468b94759bda44f99b737e7cb Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
-rw-r--r--src/scripttools/debugging/qscriptdebuggerconsole.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggerconsole.cpp b/src/scripttools/debugging/qscriptdebuggerconsole.cpp
index 5d322f08a5..3e72a2715d 100644
--- a/src/scripttools/debugging/qscriptdebuggerconsole.cpp
+++ b/src/scripttools/debugging/qscriptdebuggerconsole.cpp
@@ -489,7 +489,7 @@ QScriptDebuggerConsoleCommandJob *QScriptDebuggerConsole::consumeInput(
d->input += QLatin1Char('\n');
QScriptSyntaxCheckResult check = QScriptEngine::checkSyntax(d->input);
if (check.state() == QScriptSyntaxCheckResult::Intermediate)
- return false;
+ return 0;
d->input.chop(1); // remove the last \n
cmd = QString();
cmd.append(d->commandPrefix);