diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-03-07 11:21:43 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-08 14:34:46 +0100 |
commit | 59ad204c3daac2b642f39ca49a88cb7cbb25e6d0 (patch) | |
tree | 8805716657f2a252eb54158f49c2c8bb2b1af8c0 /src/scripttools | |
parent | a444a52ac8b6bf3368dd99653e33c7c947b8fe9b (diff) | |
download | qtscript-59ad204c3daac2b642f39ca49a88cb7cbb25e6d0.tar.gz |
Fix CLANG-warnings.
- Unused member variable.
- Unused static functions.
- Return false for pointer.
Change-Id: Ie78332d3754e7f53ed75d6006c11d60c29719c7b
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Diffstat (limited to 'src/scripttools')
-rw-r--r-- | src/scripttools/debugging/qscriptdebugger.cpp | 3 | ||||
-rw-r--r-- | src/scripttools/debugging/qscriptdebuggerconsole.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/scripttools/debugging/qscriptdebugger.cpp b/src/scripttools/debugging/qscriptdebugger.cpp index 47a428e..24de6b7 100644 --- a/src/scripttools/debugging/qscriptdebugger.cpp +++ b/src/scripttools/debugging/qscriptdebugger.cpp @@ -1021,7 +1021,7 @@ class SyncBreakpointsJob : public QScriptDebuggerCommandSchedulerJob public: SyncBreakpointsJob(QScriptDebuggerPrivate *debugger) : QScriptDebuggerCommandSchedulerJob(debugger), - m_debugger(debugger), m_index(-1) {} + m_debugger(debugger) {} void start() { QScriptDebuggerCommandSchedulerFrontend frontend(commandScheduler(), this); @@ -1044,7 +1044,6 @@ public: private: QScriptDebuggerPrivate *m_debugger; - int m_index; QList<QScriptContextInfo> m_infos; }; diff --git a/src/scripttools/debugging/qscriptdebuggerconsole.cpp b/src/scripttools/debugging/qscriptdebuggerconsole.cpp index 6baa0c9..c59b061 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); |