forked from qt-creator/qt-creator
Refactored CPlusPlus::Function.
This commit is contained in:
committed by
Oswald Buddenhagen
parent
5f44036424
commit
9aa991d636
@@ -1080,9 +1080,9 @@ void CppCodeCompletion::globalCompletion(Scope *currentScope)
|
||||
addCompletionItem(scope->symbolAt(i));
|
||||
}
|
||||
} else if (scope->isFunctionScope()) {
|
||||
Scope *arguments = scope->owner()->asFunction()->arguments();
|
||||
for (unsigned i = 0; i < arguments->symbolCount(); ++i) {
|
||||
addCompletionItem(arguments->symbolAt(i));
|
||||
Function *fun = scope->owner()->asFunction();
|
||||
for (unsigned i = 0; i < fun->argumentCount(); ++i) {
|
||||
addCompletionItem(fun->argumentAt(i));
|
||||
}
|
||||
break;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user