forked from qt-creator/qt-creator
New QTC_CHECK warning replacing QTC_ASSERT(x, /**/)
Warn if the condition fails, but otherwise don't change the execution flow. Change-Id: Id7b14c745109b66960add967b2a4ef8d31e1a546 Reviewed-on: http://codereview.qt.nokia.com/2389 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -883,7 +883,7 @@ void QmlEngine::messageReceived(const QByteArray &message)
|
||||
foreach (BreakpointModelId id, handler->engineBreakpointIds(this)) {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user