From acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 8 Mar 2019 09:06:55 +0100 Subject: Pass World everywhere by reference --- src/gui/NodeModule.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/NodeModule.cpp') diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index 8605e91d..ae030067 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -295,8 +295,8 @@ NodeModule::embed_gui(bool embed) void NodeModule::rename() { - if (app().world()->conf().option("port-labels").get() && - !app().world()->conf().option("human-names").get()) { + if (app().world().conf().option("port-labels").get() && + !app().world().conf().option("human-names").get()) { set_label(_block->path().symbol()); } } @@ -484,7 +484,7 @@ NodeModule::property_changed(const URI& key, const Atom& value) } } else if (value.type() == uris.forge.String) { if (key == uris.lv2_name - && app().world()->conf().option("human-names").get()) { + && app().world().conf().option("human-names").get()) { set_label(value.ptr()); } } -- cgit v1.2.1