forked from qt-creator/qt-creator
C++: Use soft asserts instead of assert()
Some qmake versions ignore "DEFINES += NDEBUG" on Windows. Change-Id: Ibdf3b1036c2331dcef61dcd278463c02754044d2 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
6
src/libs/3rdparty/cplusplus/Symbol.cpp
vendored
6
src/libs/3rdparty/cplusplus/Symbol.cpp
vendored
@@ -29,7 +29,9 @@
|
||||
#include "NameVisitor.h"
|
||||
#include "Scope.h"
|
||||
#include "Templates.h"
|
||||
#include <cassert>
|
||||
|
||||
#include "cppassert.h"
|
||||
|
||||
|
||||
using namespace CPlusPlus;
|
||||
|
||||
@@ -233,7 +235,7 @@ Scope *Symbol::enclosingScope() const
|
||||
|
||||
void Symbol::setScope(Scope *scope)
|
||||
{
|
||||
assert(! _scope);
|
||||
CPP_CHECK(! _scope);
|
||||
_scope = scope;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user