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

Reviewed-by: Roberto Raggi
This commit is contained in:
Leandro Melo
2010-12-03 13:43:13 +01:00
committed by con
parent 31422318d6
commit 770a6a79f1

View File

@@ -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)