forked from qt-creator/qt-creator
C++: Fix identifier used when finding symbol for matching class
Inside declaration from definition quickfix. Change-Id: Iaf1bb3c70b4c8343a04aaaaedc8416e8be55aa4d Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
@@ -186,7 +186,7 @@ QList<CppQuickFixOperation::Ptr> DeclFromDef::match(
|
|||||||
Function *fun = funDef->symbol;
|
Function *fun = funDef->symbol;
|
||||||
if (Class *matchingClass = isMemberFunction(interface->context(), fun)) {
|
if (Class *matchingClass = isMemberFunction(interface->context(), fun)) {
|
||||||
const QualifiedNameId *qName = fun->name()->asQualifiedNameId();
|
const QualifiedNameId *qName = fun->name()->asQualifiedNameId();
|
||||||
for (Symbol *s = matchingClass->find(qName->base()->identifier()); s; s = s->next()) {
|
for (Symbol *s = matchingClass->find(qName->identifier()); s; s = s->next()) {
|
||||||
if (!s->name()
|
if (!s->name()
|
||||||
|| !qName->identifier()->isEqualTo(s->identifier())
|
|| !qName->identifier()->isEqualTo(s->identifier())
|
||||||
|| !s->type()->isFunctionType())
|
|| !s->type()->isFunctionType())
|
||||||
|
|||||||
Reference in New Issue
Block a user