summaryrefslogtreecommitdiffstats
path: root/src/query.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-31 05:30:10 +0000
committerDavid Robillard <d@drobilla.net>2011-01-31 05:30:10 +0000
commit87c10c7cec29665aef891e4236e748a4fbed3030 (patch)
treed3a22f2e677611c9f567fb56d86bc4e136c742fa /src/query.c
parentd81b0c688ddb864fe6ebfee818dc1af76c7bc97b (diff)
downloadlilv-87c10c7cec29665aef891e4236e748a4fbed3030.tar.gz
lilv-87c10c7cec29665aef891e4236e748a4fbed3030.tar.bz2
lilv-87c10c7cec29665aef891e4236e748a4fbed3030.zip
librdf_new_node_from_node => slv2_node_copy.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2888 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/query.c')
-rw-r--r--src/query.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/query.c b/src/query.c
index e9121e3..085ed04 100644
--- a/src/query.c
+++ b/src/query.c
@@ -38,9 +38,9 @@ slv2_plugin_find_statements(SLV2Plugin plugin,
slv2_plugin_load_if_necessary(plugin);
librdf_statement* q = librdf_new_statement_from_nodes(
plugin->world->world,
- subject ? librdf_new_node_from_node(subject) : NULL,
- predicate ? librdf_new_node_from_node(predicate) : NULL,
- object ? librdf_new_node_from_node(object) : NULL);
+ subject ? slv2_node_copy(subject) : NULL,
+ predicate ? slv2_node_copy(predicate) : NULL,
+ object ? slv2_node_copy(object) : NULL);
librdf_stream* results = librdf_model_find_statements(plugin->rdf, q);
librdf_free_statement(q);
return results;