diff options
author | David Robillard <d@drobilla.net> | 2018-12-19 20:06:53 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-19 20:08:47 -0500 |
commit | 560054dfd64fec119303ddc2221e472cf0df4bb8 (patch) | |
tree | 0041ea5c2ad0e42930a50ecb8e87965cbcd8b963 /libs/ardour/lv2_plugin.cc | |
parent | 79c9c62154573d24a6c5699247cacb132ed4d125 (diff) |
Use lilv_world_get()
Leaves the now-trivial get_value() helper there since it keeps the call sites
shorter and nicer to read.
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 772d282f88..99841e34d7 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -1444,17 +1444,10 @@ LV2Plugin::add_state(XMLNode* root) const } } -// TODO: Once we can rely on lilv 0.16.0, lilv_world_get can replace this static LilvNode* get_value(LilvWorld* world, const LilvNode* subject, const LilvNode* predicate) { - LilvNodes* vs = lilv_world_find_nodes(world, subject, predicate, NULL); - if (vs) { - LilvNode* node = lilv_node_duplicate(lilv_nodes_get_first(vs)); - lilv_nodes_free(vs); - return node; - } - return NULL; + return lilv_world_get(world, subject, predicate, NULL); } void |