forked from qt-creator/qt-creator
		
	C++: Replace non-absolute-critical asserts for soft ones
Change-Id: I021074a78d90929b4e83b8aff9db1ae7995e8c6a Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
		| @@ -13,6 +13,8 @@ | ||||
|  | ||||
| #include <QtCore/QDebug> | ||||
|  | ||||
| #include <utils/qtcassert.h> | ||||
|  | ||||
| #include <algorithm> | ||||
| #include <utility> | ||||
|  | ||||
| @@ -218,7 +220,7 @@ void SymbolFinder::findMatchingDeclaration(const LookupContext &context, | ||||
|     Scope *enclosingScope = functionType->enclosingScope(); | ||||
|     while (! (enclosingScope->isNamespace() || enclosingScope->isClass())) | ||||
|         enclosingScope = enclosingScope->enclosingScope(); | ||||
|     Q_ASSERT(enclosingScope != 0); | ||||
|     QTC_ASSERT(enclosingScope != 0, return); | ||||
|  | ||||
|     const Name *functionName = functionType->name(); | ||||
|     if (! functionName) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user