Commit 86f487a2 authored by Erik Verbruggen's avatar Erik Verbruggen

Fixed inconsistent highlighting of virtual destructor.

Task-number: QTCREATORBUG-3404
parent 522ffa1f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment