From 87c10c7cec29665aef891e4236e748a4fbed3030 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 31 Jan 2011 05:30:10 +0000 Subject: librdf_new_node_from_node => slv2_node_copy. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2888 a436a847-0d15-0410-975c-d299462d15a1 --- src/value.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/value.c') diff --git a/src/value.c b/src/value.c index 4f9d606..59b3605 100644 --- a/src/value.c +++ b/src/value.c @@ -151,7 +151,7 @@ slv2_value_new_librdf_uri(SLV2World world, librdf_node* node) assert(node && librdf_node_is_resource(node)); SLV2Value val = (SLV2Value)malloc(sizeof(struct _SLV2Value)); val->type = SLV2_VALUE_URI; - val->val.uri_val = librdf_new_node_from_node(node); + val->val.uri_val = slv2_node_copy(node); val->str_val = (char*)librdf_uri_as_string( librdf_node_get_uri(val->val.uri_val)); return val; @@ -204,7 +204,7 @@ slv2_value_duplicate(SLV2Value val) result->type = val->type; if (val->type == SLV2_VALUE_URI) { - result->val.uri_val = librdf_new_node_from_node(val->val.uri_val); + result->val.uri_val = slv2_node_copy(val->val.uri_val); result->str_val = (char*)librdf_uri_as_string( librdf_node_get_uri(val->val.uri_val)); } else { -- cgit v1.2.1