forked from qt-creator/qt-creator
Oops! use the right base type when searching for overloads of operator->().
This commit is contained in:
@@ -598,7 +598,7 @@ ClassOrNamespace *ResolveExpression::baseExpression(const QList<LookupItem> &bas
|
||||
if (ClassOrNamespace *binding = findClass(ptrTy->elementType(), scope))
|
||||
return binding;
|
||||
|
||||
} else if (ClassOrNamespace *binding = findClass(ptrTy->elementType(), scope)) {
|
||||
} else if (ClassOrNamespace *binding = findClass(ty, scope)) {
|
||||
// lookup for overloads of operator->
|
||||
const OperatorNameId *arrowOp = control()->operatorNameId(OperatorNameId::ArrowOp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user