Skip to content
Snippets Groups Projects
Commit 0ec5f954 authored by hjk's avatar hjk
Browse files

Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline

parents 1bb15892 71ef3962
No related branches found
No related tags found
No related merge requests found
......@@ -916,7 +916,7 @@ bool CppCodeCompletion::completeQtMethod(CPlusPlus::FullySpecifiedType,
if (TextEditor::CompletionItem item = toCompletionItem(fun)) {
unsigned count = fun->argumentCount();
while (true) {
TextEditor::CompletionItem i = item;
TextEditor::CompletionItem ci = item;
QString signature;
signature += overview.prettyName(fun->name());
......@@ -937,8 +937,8 @@ bool CppCodeCompletion::completeQtMethod(CPlusPlus::FullySpecifiedType,
if (! signatures.contains(signature)) {
signatures.insert(signature);
i.m_text = signature; // fix the completion item.
m_completions.append(i);
ci.m_text = signature; // fix the completion item.
m_completions.append(ci);
}
if (count && fun->argumentAt(count - 1)->asArgument()->hasInitializer())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment