Commit 138f61ce authored by Christian Hergert's avatar Christian Hergert
Browse files

clang: avoid unncessary cast when building completion list

parent 2e83f8e8
......@@ -705,12 +705,7 @@ ide_clang_translation_unit_code_complete_worker (GTask *task,
ar = g_ptr_array_new_with_free_func (g_object_unref);
for (i = 0; i < results->NumResults; i++)
{
GtkSourceCompletionProposal *proposal;
proposal = GTK_SOURCE_COMPLETION_PROPOSAL (ide_clang_completion_item_new (refptr, i));
g_ptr_array_add (ar, proposal);
}
g_ptr_array_add (ar, ide_clang_completion_item_new (refptr, i));
g_task_return_pointer (task, ar, (GDestroyNotify)g_ptr_array_unref);
......
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