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:
@@ -183,7 +183,7 @@ void GdbMi::parseValue(const char *&from, const char *to)
|
||||
void GdbMi::parseTuple(const char *&from, const char *to)
|
||||
{
|
||||
//qDebug() << "parseTuple: " << QByteArray(from, to - from);
|
||||
QTC_ASSERT(*from == '{', /**/);
|
||||
QTC_CHECK(*from == '{');
|
||||
++from;
|
||||
parseTuple_helper(from, to);
|
||||
}
|
||||
@@ -211,7 +211,7 @@ void GdbMi::parseTuple_helper(const char *&from, const char *to)
|
||||
void GdbMi::parseList(const char *&from, const char *to)
|
||||
{
|
||||
//qDebug() << "parseList: " << QByteArray(from, to - from);
|
||||
QTC_ASSERT(*from == '[', /**/);
|
||||
QTC_CHECK(*from == '[');
|
||||
++from;
|
||||
m_type = List;
|
||||
skipCommas(from, to);
|
||||
|
||||
Reference in New Issue
Block a user