diff options
Diffstat (limited to 'src/plugins/cpptools/cppcodecompletion.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcodecompletion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppcodecompletion.cpp b/src/plugins/cpptools/cppcodecompletion.cpp index 98e39ee8b2..87f7b5bfaf 100644 --- a/src/plugins/cpptools/cppcodecompletion.cpp +++ b/src/plugins/cpptools/cppcodecompletion.cpp @@ -151,7 +151,7 @@ public: TextEditor::CompletionItem previousItem = switchCompletionItem(0); Symbol *previousSymbol = switchSymbol(symbol); - accept(symbol->identity()); + accept(symbol->unqualifiedName()); if (_item.isValid()) _item.data = QVariant::fromValue(symbol); (void) switchSymbol(previousSymbol); @@ -1849,7 +1849,7 @@ void CppCodeCompletion::complete(const TextEditor::CompletionItem &item, QChar t if (Function *function = symbol->type()->asFunctionType()) { // If the member is a function, automatically place the opening parenthesis, // except when it might take template parameters. - if (! function->hasReturnType() && (function->identity() && !function->identity()->isDestructorNameId())) { + if (! function->hasReturnType() && (function->unqualifiedName() && !function->unqualifiedName()->isDestructorNameId())) { // Don't insert any magic, since the user might have just wanted to select the class /// ### port me |