summaryrefslogtreecommitdiffstats
path: root/src/value.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/value.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/value.c')
-rw-r--r--src/value.c4
1 files changed, 2 insertions, 2 deletions
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 {