From 6f5f093a2152a9cf76c756c49a75aa319ea05034 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 28 Sep 2011 21:31:57 +0000 Subject: Remove glib dependency git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3501 a436a847-0d15-0410-975c-d299462d15a1 --- src/query.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/query.c') diff --git a/src/query.c b/src/query.c index 5f6cc57..d37527f 100644 --- a/src/query.c +++ b/src/query.c @@ -79,13 +79,14 @@ lilv_nodes_from_stream_objects_i18n(LilvWorld* world, if (lm == LILV_LANG_MATCH_EXACT) { // Exact language match, add to results - lilv_array_append(values, lilv_node_new_from_node(world, value)); + zix_tree_insert( + values, lilv_node_new_from_node(world, value), NULL); } else if (lm == LILV_LANG_MATCH_PARTIAL) { // Partial language match, save in case we find no exact partial = value; } } else { - lilv_array_append(values, lilv_node_new_from_node(world, value)); + zix_tree_insert(values, lilv_node_new_from_node(world, value), NULL); } } lilv_match_end(stream); @@ -106,7 +107,7 @@ lilv_nodes_from_stream_objects_i18n(LilvWorld* world, } if (best) { - lilv_array_append(values, lilv_node_new_from_node(world, best)); + zix_tree_insert(values, lilv_node_new_from_node(world, best), NULL); } else { // No matches whatsoever lilv_nodes_free(values); @@ -131,7 +132,7 @@ lilv_nodes_from_stream_objects(LilvWorld* world, LilvNode* value = lilv_node_new_from_node( world, lilv_match_object(stream)); if (value) { - lilv_array_append(values, value); + zix_tree_insert(values, value, NULL); } } lilv_match_end(stream); -- cgit v1.2.1