From 55700881e37011cd64147f7fc7218866d8eb9fdd Mon Sep 17 00:00:00 2001 From: Leandro Melo Date: Fri, 3 Dec 2010 13:43:13 +0100 Subject: [PATCH] C++ editor: Don't sort global completions for performance reasons Reviewed-by: Roberto Raggi --- src/plugins/cpptools/cppcodecompletion.cpp | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/plugins/cpptools/cppcodecompletion.cpp b/src/plugins/cpptools/cppcodecompletion.cpp index 3f1266e..81636c7 100644 --- a/src/plugins/cpptools/cppcodecompletion.cpp +++ b/src/plugins/cpptools/cppcodecompletion.cpp @@ -1126,11 +1126,9 @@ void CppCodeCompletion::globalCompletion(Scope *currentScope) completeNamespace(b); addKeywords(); - addSnippets(); - qStableSort(m_completions.begin(), m_completions.end(), completionItemLessThan); - addMacros(QLatin1String(""), context.snapshot()); addMacros(context.thisDocument()->fileName(), context.snapshot()); + addSnippets(); } static Scope *enclosingNonTemplateScope(Symbol *symbol) -- 1.7.0.2.msysgit.0