From 50f5747f3877d124014ce6eaba307a6bffddc1c2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 28 Apr 2012 04:58:37 +0000 Subject: Tidy. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4300 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/PluginUI.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/client/PluginUI.cpp') diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp index a58bdabe..dee00fea 100644 --- a/src/client/PluginUI.cpp +++ b/src/client/PluginUI.cpp @@ -67,7 +67,9 @@ lv2_ui_write(SuilController controller, LV2_Atom* atom = (LV2_Atom*)buffer; Raul::Atom val = ui->world()->forge().alloc( atom->size, atom->type, LV2_ATOM_BODY(atom)); - ui->world()->engine()->set_property(port->path(), uris.ingen_value, val); + ui->world()->engine()->set_property(port->path(), + uris.ingen_value, + val); } else { warn << "Unknown value format " << format @@ -170,13 +172,14 @@ PluginUI::port_event(uint32_t port_index, bool PluginUI::is_resizable() const { + LilvWorld* w = _world->lilv_world(); const LilvNode* s = _ui_node; - LilvNode* p = lilv_new_uri(_world->lilv_world(), LV2_CORE__optionalFeature); - LilvNode* fs = lilv_new_uri(_world->lilv_world(), LV2_UI__fixedSize); - LilvNode* nrs = lilv_new_uri(_world->lilv_world(), LV2_UI__noUserResize); + LilvNode* p = lilv_new_uri(w, LV2_CORE__optionalFeature); + LilvNode* fs = lilv_new_uri(w, LV2_UI__fixedSize); + LilvNode* nrs = lilv_new_uri(w, LV2_UI__noUserResize); - LilvNodes* fs_matches = lilv_world_find_nodes(_world->lilv_world(), s, p, fs); - LilvNodes* nrs_matches = lilv_world_find_nodes(_world->lilv_world(), s, p, nrs); + LilvNodes* fs_matches = lilv_world_find_nodes(w, s, p, fs); + LilvNodes* nrs_matches = lilv_world_find_nodes(w, s, p, nrs); lilv_nodes_free(nrs_matches); lilv_nodes_free(fs_matches); -- cgit v1.2.1