CppTools: Simplify

Change-Id: Id10cbcf541d8105265c531e63a64e2fd34e27379
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Nikolai Kosjar
2019-10-31 16:15:03 +01:00
parent 5cd474522a
commit 32fe77564e
6 changed files with 18 additions and 31 deletions

View File

@@ -374,7 +374,7 @@ Symbol *findDefinition(Symbol *symbol, const Snapshot &snapshot, SymbolFinder *s
if (symbol->isFunction())
return nullptr; // symbol is a function definition.
else if (!symbol->type()->isFunctionType())
if (!symbol->type()->isFunctionType())
return nullptr; // not a function declaration
return symbolFinder->findMatchingDefinition(symbol, snapshot);