mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
Use lilv_world_get()
Leaves the now-trivial get_value() helper there since it keeps the call sites shorter and nicer to read.
This commit is contained in:
parent
79c9c62154
commit
560054dfd6
1 changed files with 1 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue