forked from qt-creator/qt-creator
Use Prototype instead of Function.
This commit is contained in:
committed by
Oswald Buddenhagen
parent
9aa991d636
commit
4ff3ee2ff0
@@ -280,7 +280,7 @@ QList<LookupItem> LookupContext::lookup(const Name *name, Scope *scope) const
|
||||
}
|
||||
}
|
||||
|
||||
} else if (scope->isFunctionScope()) {
|
||||
} else if (scope->isPrototypeScope()) {
|
||||
Function *fun = scope->owner()->asFunction();
|
||||
bindings()->lookupInScope(name, fun->members(), &candidates, /*templateId = */ 0, /*binding=*/ 0);
|
||||
|
||||
|
||||
@@ -316,7 +316,7 @@ void ResolveExpression::thisObject()
|
||||
{
|
||||
Scope *scope = _scope;
|
||||
for (; scope; scope = scope->enclosingScope()) {
|
||||
if (scope->isFunctionScope()) {
|
||||
if (scope->isPrototypeScope()) {
|
||||
Function *fun = scope->owner()->asFunction();
|
||||
if (Scope *cscope = scope->enclosingClassScope()) {
|
||||
Class *klass = cscope->owner()->asClass();
|
||||
|
||||
Reference in New Issue
Block a user