forked from qt-creator/qt-creator
Use Prototype instead of Function.
This commit is contained in:
committed by
Oswald Buddenhagen
parent
9aa991d636
commit
4ff3ee2ff0
@@ -1078,10 +1078,10 @@ void CPPEditor::switchDeclarationDefinition()
|
||||
Symbol *lastVisibleSymbol = thisDocument->lastVisibleSymbolAt(line, column);
|
||||
|
||||
Scope *functionScope = 0;
|
||||
if (scope->isFunctionScope())
|
||||
if (scope->isPrototypeScope())
|
||||
functionScope = scope;
|
||||
else
|
||||
functionScope = scope->enclosingFunctionScope();
|
||||
functionScope = scope->enclosingPrototypeScope();
|
||||
|
||||
if (! functionScope && lastVisibleSymbol) {
|
||||
if (Function *def = lastVisibleSymbol->asFunction())
|
||||
|
||||
Reference in New Issue
Block a user