diff options
author | Alessandro Portale <aportale@trolltech.com> | 2009-07-13 17:35:17 +0200 |
---|---|---|
committer | Alessandro Portale <aportale@trolltech.com> | 2009-07-13 17:35:17 +0200 |
commit | d3f9757916d5ba10eac63ef6c42611924999c3b0 (patch) | |
tree | d3da900526161354a6c1ea76f9e66247897977d3 /src/plugins/debugger | |
parent | f9ed6f18bce732a0b440b40cb1cb930d779660ff (diff) | |
download | qt-creator-d3f9757916d5ba10eac63ef6c42611924999c3b0.tar.gz |
Removing some unused semicolons after Q_UNUSED
There were both variants, with and without extra semicolon.
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r-- | src/plugins/debugger/debuggeroutputwindow.cpp | 2 | ||||
-rw-r--r-- | src/plugins/debugger/debuggerrunner.cpp | 2 | ||||
-rw-r--r-- | src/plugins/debugger/debuggertooltip.cpp | 2 | ||||
-rw-r--r-- | src/plugins/debugger/disassemblerhandler.cpp | 4 | ||||
-rw-r--r-- | src/plugins/debugger/gdb/gdbengine.cpp | 10 | ||||
-rw-r--r-- | src/plugins/debugger/script/scriptengine.cpp | 56 | ||||
-rw-r--r-- | src/plugins/debugger/tcf/tcfengine.cpp | 20 | ||||
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 6 | ||||
-rw-r--r-- | src/plugins/debugger/watchwindow.cpp | 2 |
9 files changed, 52 insertions, 52 deletions
diff --git a/src/plugins/debugger/debuggeroutputwindow.cpp b/src/plugins/debugger/debuggeroutputwindow.cpp index 5d588c2fec..837747e85d 100644 --- a/src/plugins/debugger/debuggeroutputwindow.cpp +++ b/src/plugins/debugger/debuggeroutputwindow.cpp @@ -350,7 +350,7 @@ void DebuggerOutputWindow::showOutput(int channel, const QString &output) void DebuggerOutputWindow::showInput(int channel, const QString &input) { - Q_UNUSED(channel); + Q_UNUSED(channel) m_inputText->appendPlainText(input); QTextCursor cursor = m_inputText->textCursor(); cursor.movePosition(QTextCursor::End); diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp index 21d809e901..4b151c52cf 100644 --- a/src/plugins/debugger/debuggerrunner.cpp +++ b/src/plugins/debugger/debuggerrunner.cpp @@ -97,7 +97,7 @@ RunControl *DebuggerRunner::run(RunConfigurationPtr runConfiguration, QWidget *DebuggerRunner::configurationWidget(RunConfigurationPtr runConfiguration) { // NBS TODO: Add GDB-specific configuration widget - Q_UNUSED(runConfiguration); + Q_UNUSED(runConfiguration) return 0; } diff --git a/src/plugins/debugger/debuggertooltip.cpp b/src/plugins/debugger/debuggertooltip.cpp index 622a8948e8..a5a72cdde0 100644 --- a/src/plugins/debugger/debuggertooltip.cpp +++ b/src/plugins/debugger/debuggertooltip.cpp @@ -90,7 +90,7 @@ ToolTipWidget::ToolTipWidget(QWidget *parent) bool ToolTipWidget::eventFilter(QObject *ob, QEvent *ev) { - Q_UNUSED(ob); + Q_UNUSED(ob) switch (ev->type()) { case QEvent::ShortcutOverride: if (static_cast<QKeyEvent *>(ev)->key() == Qt::Key_Escape) diff --git a/src/plugins/debugger/disassemblerhandler.cpp b/src/plugins/debugger/disassemblerhandler.cpp index 334348b428..74bf2f0815 100644 --- a/src/plugins/debugger/disassemblerhandler.cpp +++ b/src/plugins/debugger/disassemblerhandler.cpp @@ -91,13 +91,13 @@ DisassemblerModel::DisassemblerModel(QObject *parent) int DisassemblerModel::rowCount(const QModelIndex &parent) const { - Q_UNUSED(parent); + Q_UNUSED(parent) return m_lines.size(); } int DisassemblerModel::columnCount(const QModelIndex &parent) const { - Q_UNUSED(parent); + Q_UNUSED(parent) return 3; } diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 4819a12618..fa8f9d7a0a 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -352,7 +352,7 @@ void GdbEngine::readUploadStandardError() static void dump(const char *first, const char *middle, const QString & to) { QByteArray ba(first, middle - first); - Q_UNUSED(to); + Q_UNUSED(to) // note that qDebug cuts off output after a certain size... (bug?) qDebug("\n>>>>> %s\n%s\n====\n%s\n<<<<<\n", qPrintable(currentTime()), @@ -1641,7 +1641,7 @@ void GdbEngine::continueInferior() void GdbEngine::handleStart(const GdbResultRecord &response, const QVariant &) { #if defined(Q_OS_MAC) - Q_UNUSED(response); + Q_UNUSED(response) #else if (response.resultClass == GdbResultDone) { // [some leading stdout here] @@ -2689,7 +2689,7 @@ static QString tooltipINameForExpression(const QString &exp) { // FIXME: 'exp' can contain illegal characters //return QLatin1String("tooltip.") + exp; - Q_UNUSED(exp); + Q_UNUSED(exp) return QLatin1String("tooltip.x"); } @@ -2865,7 +2865,7 @@ void GdbEngine::setUseDebuggingHelpers(const QVariant &on) //qDebug() << "SWITCHING ON/OFF DUMPER DEBUGGING:" << on; // FIXME: a bit too harsh, but otherwise the treeview sometimes look funny //m_expandedINames.clear(); - Q_UNUSED(on); + Q_UNUSED(on) setTokenBarrier(); updateLocals(); } @@ -2899,7 +2899,7 @@ static inline QString msgRetrievingWatchData(int pending) void GdbEngine::runDirectDebuggingHelper(const WatchData &data, bool dumpChildren) { - Q_UNUSED(dumpChildren); + Q_UNUSED(dumpChildren) QString type = data.type; QString cmd; diff --git a/src/plugins/debugger/script/scriptengine.cpp b/src/plugins/debugger/script/scriptengine.cpp index 28d20a24cc..59f54c2c44 100644 --- a/src/plugins/debugger/script/scriptengine.cpp +++ b/src/plugins/debugger/script/scriptengine.cpp @@ -124,57 +124,57 @@ void ScriptAgent::contextPush() void ScriptAgent::exceptionCatch(qint64 scriptId, const QScriptValue & exception) { - Q_UNUSED(scriptId); - Q_UNUSED(exception); + Q_UNUSED(scriptId) + Q_UNUSED(exception) SDEBUG("ScriptAgent::exceptionCatch: " << scriptId << &exception); } void ScriptAgent::exceptionThrow(qint64 scriptId, const QScriptValue &exception, bool hasHandler) { - Q_UNUSED(scriptId); - Q_UNUSED(exception); - Q_UNUSED(hasHandler); + Q_UNUSED(scriptId) + Q_UNUSED(exception) + Q_UNUSED(hasHandler) SDEBUG("ScriptAgent::exceptionThrow: " << scriptId << &exception << hasHandler); } void ScriptAgent::functionEntry(qint64 scriptId) { - Q_UNUSED(scriptId); + Q_UNUSED(scriptId) q->maybeBreakNow(true); } void ScriptAgent::functionExit(qint64 scriptId, const QScriptValue &returnValue) { - Q_UNUSED(scriptId); - Q_UNUSED(returnValue); + Q_UNUSED(scriptId) + Q_UNUSED(returnValue) SDEBUG("ScriptAgent::functionExit: " << scriptId << &returnValue); } void ScriptAgent::positionChange(qint64 scriptId, int lineNumber, int columnNumber) { SDEBUG("ScriptAgent::position: " << lineNumber); - Q_UNUSED(scriptId); - Q_UNUSED(lineNumber); - Q_UNUSED(columnNumber); + Q_UNUSED(scriptId) + Q_UNUSED(lineNumber) + Q_UNUSED(columnNumber) q->maybeBreakNow(false); } void ScriptAgent::scriptLoad(qint64 scriptId, const QString &program, const QString &fileName, int baseLineNumber) { - Q_UNUSED(scriptId); - Q_UNUSED(program); - Q_UNUSED(fileName); - Q_UNUSED(baseLineNumber); + Q_UNUSED(scriptId) + Q_UNUSED(program) + Q_UNUSED(fileName) + Q_UNUSED(baseLineNumber) SDEBUG("ScriptAgent::scriptLoad: " << program << fileName << baseLineNumber); } void ScriptAgent::scriptUnload(qint64 scriptId) { - Q_UNUSED(scriptId); + Q_UNUSED(scriptId) SDEBUG("ScriptAgent::scriptUnload: " << scriptId); } @@ -201,7 +201,7 @@ ScriptEngine::~ScriptEngine() void ScriptEngine::executeDebuggerCommand(const QString &command) { - Q_UNUSED(command); + Q_UNUSED(command) XSDEBUG("FIXME: ScriptEngine::executeDebuggerCommand()"); } @@ -344,32 +344,32 @@ void ScriptEngine::nextIExec() void ScriptEngine::runToLineExec(const QString &fileName, int lineNumber) { - Q_UNUSED(fileName); - Q_UNUSED(lineNumber); + Q_UNUSED(fileName) + Q_UNUSED(lineNumber) SDEBUG("FIXME: ScriptEngine::runToLineExec()"); } void ScriptEngine::runToFunctionExec(const QString &functionName) { - Q_UNUSED(functionName); + Q_UNUSED(functionName) XSDEBUG("FIXME: ScriptEngine::runToFunctionExec()"); } void ScriptEngine::jumpToLineExec(const QString &fileName, int lineNumber) { - Q_UNUSED(fileName); - Q_UNUSED(lineNumber); + Q_UNUSED(fileName) + Q_UNUSED(lineNumber) XSDEBUG("FIXME: ScriptEngine::jumpToLineExec()"); } void ScriptEngine::activateFrame(int index) { - Q_UNUSED(index); + Q_UNUSED(index) } void ScriptEngine::selectThread(int index) { - Q_UNUSED(index); + Q_UNUSED(index) } void ScriptEngine::attemptBreakpointSynchronization() @@ -402,7 +402,7 @@ void ScriptEngine::reloadDisassembler() void ScriptEngine::loadSymbols(const QString &moduleName) { - Q_UNUSED(moduleName); + Q_UNUSED(moduleName) } void ScriptEngine::loadAllSymbols() @@ -431,9 +431,9 @@ static QHash<QString, WatchData> m_toolTipCache; void ScriptEngine::setToolTipExpression(const QPoint &mousePos, TextEditor::ITextEditor *editor, int cursorPos) { - Q_UNUSED(mousePos); - Q_UNUSED(editor); - Q_UNUSED(cursorPos); + Q_UNUSED(mousePos) + Q_UNUSED(editor) + Q_UNUSED(cursorPos) if (q->status() != DebuggerInferiorStopped) { //SDEBUG("SUPPRESSING DEBUGGER TOOLTIP, INFERIOR NOT STOPPED"); diff --git a/src/plugins/debugger/tcf/tcfengine.cpp b/src/plugins/debugger/tcf/tcfengine.cpp index b699f40954..8e5b21e0dd 100644 --- a/src/plugins/debugger/tcf/tcfengine.cpp +++ b/src/plugins/debugger/tcf/tcfengine.cpp @@ -273,32 +273,32 @@ void TcfEngine::nextIExec() void TcfEngine::runToLineExec(const QString &fileName, int lineNumber) { - Q_UNUSED(fileName); - Q_UNUSED(lineNumber); + Q_UNUSED(fileName) + Q_UNUSED(lineNumber) SDEBUG("FIXME: TcfEngine::runToLineExec()"); } void TcfEngine::runToFunctionExec(const QString &functionName) { - Q_UNUSED(functionName); + Q_UNUSED(functionName) XSDEBUG("FIXME: TcfEngine::runToFunctionExec()"); } void TcfEngine::jumpToLineExec(const QString &fileName, int lineNumber) { - Q_UNUSED(fileName); - Q_UNUSED(lineNumber); + Q_UNUSED(fileName) + Q_UNUSED(lineNumber) XSDEBUG("FIXME: TcfEngine::jumpToLineExec()"); } void TcfEngine::activateFrame(int index) { - Q_UNUSED(index); + Q_UNUSED(index) } void TcfEngine::selectThread(int index) { - Q_UNUSED(index); + Q_UNUSED(index) } void TcfEngine::attemptBreakpointSynchronization() @@ -311,7 +311,7 @@ void TcfEngine::reloadDisassembler() void TcfEngine::loadSymbols(const QString &moduleName) { - Q_UNUSED(moduleName); + Q_UNUSED(moduleName) } void TcfEngine::loadAllSymbols() @@ -498,7 +498,7 @@ void TcfEngine::sendCommandNow(const TcfCommand &cmd) { ++m_inAir; int result = m_socket->write(cmd.command); - Q_UNUSED(result); + Q_UNUSED(result) m_socket->flush(); emit tcfInputAvailable(LogInput, QString::number(cmd.token) + " " + cmd.toString()); SDEBUG("SEND " << cmd.toString()); //<< " " << QString::number(result)); @@ -572,7 +572,7 @@ void TcfEngine::updateWatchData(const WatchData &) void TcfEngine::updateSubItem(const WatchData &data0) { - Q_UNUSED(data0); + Q_UNUSED(data0) QTC_ASSERT(false, return); } diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 5230c8c857..b6dad71d4a 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -572,7 +572,7 @@ int WatchModel::rowCount(const QModelIndex &idx) const int WatchModel::columnCount(const QModelIndex &idx) const { - Q_UNUSED(idx); + Q_UNUSED(idx) return 3; } @@ -997,8 +997,8 @@ void WatchHandler::watchExpression(const QString &exp) void WatchHandler::setDisplayedIName(const QString &iname, bool on) { - Q_UNUSED(iname); - Q_UNUSED(on); + Q_UNUSED(iname) + Q_UNUSED(on) /* WatchData *d = findData(iname); if (!on || !d) { diff --git a/src/plugins/debugger/watchwindow.cpp b/src/plugins/debugger/watchwindow.cpp index 2737d05b4f..571e8ac4b9 100644 --- a/src/plugins/debugger/watchwindow.cpp +++ b/src/plugins/debugger/watchwindow.cpp @@ -318,7 +318,7 @@ bool WatchWindow::event(QEvent *ev) void WatchWindow::editItem(const QModelIndex &idx) { - Q_UNUSED(idx); // FIXME + Q_UNUSED(idx) // FIXME } void WatchWindow::setModel(QAbstractItemModel *model) |