Fixed inconsistent highlighting of virtual destructor.

Task-number: QTCREATORBUG-3404
This commit is contained in:
Erik Verbruggen
2011-01-19 17:19:03 +01:00
parent 522ffa1fa7
commit 86f487a296

View File

@@ -641,7 +641,7 @@ void CheckSymbols::checkName(NameAST *ast, Scope *scope)
if (! scope)
scope = enclosingScope();
if (ast->asDestructorName() != 0 && scope->isClass()) {
if (ast->asDestructorName() != 0) {
Class *klass = scope->asClass();
if (hasVirtualDestructor(_context.lookupType(klass)))
addUse(ast, Use::VirtualMethod);