diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2011-07-29 12:00:11 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2011-07-29 12:19:11 +0200 |
commit | 1757228278004b56fcf3ff5f3fccd80216b7df2d (patch) | |
tree | e546475fe7a9f32ce23b6b157b666b6220c25faf /src/plugins/debugger/gdb/gdbmi.cpp | |
parent | c031d4564e2a9cba04cc9d15b7e197251a2d79f7 (diff) | |
download | qt-creator-1757228278004b56fcf3ff5f3fccd80216b7df2d.tar.gz |
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>
Diffstat (limited to 'src/plugins/debugger/gdb/gdbmi.cpp')
-rw-r--r-- | src/plugins/debugger/gdb/gdbmi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/gdb/gdbmi.cpp b/src/plugins/debugger/gdb/gdbmi.cpp index 080916037a..c4745f9370 100644 --- a/src/plugins/debugger/gdb/gdbmi.cpp +++ b/src/plugins/debugger/gdb/gdbmi.cpp @@ -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); |