Commit 35309ad5 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

CppTools: Do not duplicate function overrides entries

When function's class is the same as the static class

Change-Id: Ifb509b996b4628c3b56d7540fd133ef370713214
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent 48770e57
......@@ -125,7 +125,8 @@ QList<Symbol *> FunctionUtils::overrides(Function *function, Class *functionsCla
const TypeHierarchy &staticClassHierarchy = builder.buildDerivedTypeHierarchy();
QList<TypeHierarchy> l;
l.append(TypeHierarchy(functionsClass));
if (functionsClass != staticClass)
l.append(TypeHierarchy(functionsClass));
l.append(staticClassHierarchy);
while (!l.isEmpty()) {
......
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