diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-26 12:23:09 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-26 12:23:09 +0200 |
commit | 988cc958ab78cf9debeaef3e93c0007519dc2289 (patch) | |
tree | 4bb0b715b16229d03502b5e6ed121ef0f325f88d /src/plugins/cpptools/cppcodecompletion.cpp | |
parent | e3551684eec6f9ff27bb63d29eb7f55e592900d8 (diff) | |
download | qt-creator-988cc958ab78cf9debeaef3e93c0007519dc2289.tar.gz |
Renamed Symbol::identity() to Symbol::unqualifiedName().
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 |