Don't use QTC_ASSERT in the C++ front-end library. The engine does not

recover from invalid asserts, so it will crash anyway, but not in
a controlled environment.
This commit is contained in:
Roberto Raggi
2008-12-10 15:43:17 +01:00
parent 0722e95682
commit fdfae53abb
4 changed files with 17 additions and 25 deletions

View File

@@ -53,8 +53,6 @@
#include "pp-environment.h"
#include "pp.h"
#include <utils/qtcassert.h>
#include <cstring>
using namespace CPlusPlus;
@@ -93,7 +91,7 @@ Macro *Environment::macroAt(unsigned index) const
Macro *Environment::bind(const Macro &__macro)
{
QTC_ASSERT(! __macro.name.isEmpty(), return 0);
Q_ASSERT(! __macro.name.isEmpty());
Macro *m = new Macro (__macro);
m->hashcode = hash_code(m->name);