[gnome-builder] clang-completion: rename sort function to be more descriptive
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang-completion: rename sort function to be more descriptive
- Date: Mon, 7 Nov 2016 21:04:58 +0000 (UTC)
commit 1972fd022826e1d6d8fe1fe44806e4a2193a1811
Author: Christian Hergert <chergert redhat com>
Date: Mon Nov 7 13:00:15 2016 -0800
clang-completion: rename sort function to be more descriptive
It's helpful to know exactly what our sort is keying off. Simple rename.
plugins/clang/ide-clang-completion-provider.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/clang/ide-clang-completion-provider.c b/plugins/clang/ide-clang-completion-provider.c
index 08cb20e..dcb9a16 100644
--- a/plugins/clang/ide-clang-completion-provider.c
+++ b/plugins/clang/ide-clang-completion-provider.c
@@ -106,7 +106,7 @@ sort_by_priority (gconstpointer a,
}
static void
-ide_clang_completion_provider_sort (IdeClangCompletionProvider *self)
+ide_clang_completion_provider_sort_by_priority (IdeClangCompletionProvider *self)
{
g_assert (IDE_IS_CLANG_COMPLETION_PROVIDER (self));
@@ -390,7 +390,7 @@ ide_clang_completion_provider_code_complete_cb (GObject *object,
{
if (state->query && *state->query)
ide_clang_completion_provider_refilter (state->self, results, state->query);
- ide_clang_completion_provider_sort (state->self);
+ ide_clang_completion_provider_sort_by_priority (state->self);
IDE_TRACE_MSG ("%d results returned from clang", results->len);
gtk_source_completion_context_add_proposals (state->context,
GTK_SOURCE_COMPLETION_PROVIDER (state->self),
@@ -559,7 +559,7 @@ ide_clang_completion_provider_populate (GtkSourceCompletionProvider *provider,
* linked list instead of all items.
*/
ide_clang_completion_provider_refilter (self, self->last_results, prefix);
- ide_clang_completion_provider_sort (self);
+ ide_clang_completion_provider_sort_by_priority (self);
gtk_source_completion_context_add_proposals (context, provider, self->head, TRUE);
IDE_EXIT;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]