From 3b22d3c8c57867cad7304dac1e9be5ee36ae9715 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 28 Aug 2015 03:07:12 +0000 Subject: Get rid of LV2Info class. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5708 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/PluginUI.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client') diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp index 4b87957c..a16dcb2c 100644 --- a/src/client/PluginUI.cpp +++ b/src/client/PluginUI.cpp @@ -168,6 +168,8 @@ PluginUI::create(Ingen::World* world, SPtr block, const LilvPlugin* plugin) { + const URIs& uris = world->uris(); + if (!PluginUI::ui_host) { PluginUI::ui_host = suil_host_new(lv2_ui_write, lv2_ui_port_index, @@ -210,12 +212,11 @@ PluginUI::create(Ingen::World* world, LilvWorld* lworld = world->lilv_world(); LilvNode* ui_portNotification = lilv_new_uri(lworld, LV2_UI__portNotification); LilvNode* ui_plugin = lilv_new_uri(lworld, LV2_UI__plugin); - LilvNode* lv2_symbol = lilv_new_uri(lworld, LV2_CORE__symbol); LilvNodes* notes = lilv_world_find_nodes( lworld, lilv_ui_get_uri(ui), ui_portNotification, NULL); LILV_FOREACH(nodes, n, notes) { const LilvNode* note = lilv_nodes_get(notes, n); - const LilvNode* sym = lilv_world_get(lworld, note, lv2_symbol, NULL); + const LilvNode* sym = lilv_world_get(lworld, note, uris.lv2_symbol, NULL); const LilvNode* plug = lilv_world_get(lworld, note, ui_plugin, NULL); if (plug && !lilv_node_is_uri(plug)) { world->log().error(fmt("%1% UI has non-URI ui:plugin\n") @@ -234,7 +235,6 @@ PluginUI::create(Ingen::World* world, } } lilv_nodes_free(notes); - lilv_node_free(lv2_symbol); lilv_node_free(ui_plugin); lilv_node_free(ui_portNotification); -- cgit v1.2.1