QmlDebugger: Use QTC_CHECK where appropriate

Change-Id: Ide9ee35677a49c52788042df9fedffb4cf90f857
Reviewed-on: http://codereview.qt-project.org/5898
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
Kai Koehne
2011-09-30 17:54:19 +02:00
parent 732334a0b8
commit cb7e185332

View File

@@ -197,7 +197,7 @@ void QScriptDebuggerClient::startSession()
//Set all breakpoints
BreakHandler *handler = d->engine->breakHandler();
foreach (BreakpointModelId id, handler->engineBreakpointIds(d->engine)) {
QTC_ASSERT(handler->state(id) == BreakpointInsertProceeding,/**/);
QTC_CHECK(handler->state(id) == BreakpointInsertProceeding);
handler->notifyBreakpointInsertOk(id);
}
}
@@ -416,7 +416,7 @@ void QScriptDebuggerClient::messageReceived(const QByteArray &data)
QString processedFilename = handler->fileName(id);
if (processedFilename == file && handler->lineNumber(id) == line) {
QTC_ASSERT(handler->state(id) == BreakpointInserted,/**/);
QTC_CHECK(handler->state(id) == BreakpointInserted);
BreakpointResponse br = handler->response(id);
br.fileName = file;
br.lineNumber = line;