summaryrefslogtreecommitdiffstats
path: root/src/query.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-10-27 21:48:48 -0400
committerDavid Robillard <d@drobilla.net>2021-10-27 21:48:48 -0400
commit42c4705bbcdf0a638aca6923325ed9a5660bfc26 (patch)
tree85a2f4f19f512e74ea80803c55964c7447dcbde7 /src/query.c
parent6f36b5a3fb181f6b9f9b1538d894efe24a0e92c7 (diff)
downloadlilv-42c4705bbcdf0a638aca6923325ed9a5660bfc26.tar.gz
lilv-42c4705bbcdf0a638aca6923325ed9a5660bfc26.tar.bz2
lilv-42c4705bbcdf0a638aca6923325ed9a5660bfc26.zip
fixup! WIP: Port to serd1
Diffstat (limited to 'src/query.c')
-rw-r--r--src/query.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/query.c b/src/query.c
index 5bed1ce..77a9d8c 100644
--- a/src/query.c
+++ b/src/query.c
@@ -78,13 +78,13 @@ lilv_nodes_from_range_i18n(LilvWorld* world, SerdCursor* range, SerdField field)
if (lm == LILV_LANG_MATCH_EXACT) {
// Exact language match, add to results
- zix_tree_insert((ZixTree*)values, serd_node_copy(value), NULL);
+ zix_tree_insert((ZixTree*)values, serd_node_copy(NULL, value), NULL);
} else if (lm == LILV_LANG_MATCH_PARTIAL) {
// Partial language match, save in case we find no exact
partial = value;
}
} else {
- zix_tree_insert((ZixTree*)values, serd_node_copy(value), NULL);
+ zix_tree_insert((ZixTree*)values, serd_node_copy(NULL, value), NULL);
}
}
serd_cursor_free(range);
@@ -105,7 +105,7 @@ lilv_nodes_from_range_i18n(LilvWorld* world, SerdCursor* range, SerdField field)
}
if (best) {
- zix_tree_insert((ZixTree*)values, serd_node_copy(best), NULL);
+ zix_tree_insert((ZixTree*)values, serd_node_copy(NULL, best), NULL);
} else {
// No matches whatsoever
lilv_nodes_free(values);
@@ -127,7 +127,7 @@ lilv_nodes_from_range(LilvWorld* world, SerdCursor* range, SerdField field)
LilvNodes* values = lilv_nodes_new();
FOREACH_MATCH (s, range) {
const SerdNode* value = serd_statement_node(s, field);
- LilvNode* node = serd_node_copy(value);
+ LilvNode* node = serd_node_copy(NULL, value);
if (node) {
zix_tree_insert((ZixTree*)values, node, NULL);
}