Commit 770a6a79 authored by Leandro Melo's avatar Leandro Melo Committed by con

C++ editor: Don't sort global completions for performance reasons

Reviewed-by: Roberto Raggi
parent 31422318
......@@ -1126,11 +1126,9 @@ void CppCodeCompletion::globalCompletion(Scope *currentScope)
completeNamespace(b);
addKeywords();
addSnippets();
qStableSort(m_completions.begin(), m_completions.end(), completionItemLessThan);
addMacros(QLatin1String("<configuration>"), context.snapshot());
addMacros(context.thisDocument()->fileName(), context.snapshot());
addSnippets();
}
static Scope *enclosingNonTemplateScope(Symbol *symbol)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment