diff options
author | David Robillard <d@drobilla.net> | 2020-12-14 21:21:49 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-14 22:04:29 +0100 |
commit | cba264d3555e2741665693da416f9649b8cc3a49 (patch) | |
tree | ddc1dc1e80f79f6564f64ba2867447d233da685b /src | |
parent | 992b6bbe9f17749f509ca61587efef13d052ba7f (diff) | |
download | ingen-cba264d3555e2741665693da416f9649b8cc3a49.tar.gz ingen-cba264d3555e2741665693da416f9649b8cc3a49.tar.bz2 ingen-cba264d3555e2741665693da416f9649b8cc3a49.zip |
Fix redundant calls to smart pointer get() methods
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/PortMenu.cpp | 2 | ||||
-rw-r--r-- | src/gui/ingen_gui_lv2.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/PortMenu.cpp b/src/gui/PortMenu.cpp index 33e106af..09cd2bea 100644 --- a/src/gui/PortMenu.cpp +++ b/src/gui/PortMenu.cpp @@ -153,7 +153,7 @@ PortMenu::on_menu_expose() const std::string label = block->label() + " " + block->port_label(port); const Raul::Path path = Raul::Path(block->path() + Raul::Symbol("_" + port->symbol())); - ingen::Resource r(*_object.get()); + ingen::Resource r(*_object); r.remove_property(uris.lv2_index, uris.patch_wildcard); r.set_property(uris.lv2_symbol, _app->forge().alloc(path.symbol())); r.set_property(uris.lv2_name, _app->forge().alloc(label.c_str())); diff --git a/src/gui/ingen_gui_lv2.cpp b/src/gui/ingen_gui_lv2.cpp index 6d6f9cee..a9d62c44 100644 --- a/src/gui/ingen_gui_lv2.cpp +++ b/src/gui/ingen_gui_lv2.cpp @@ -152,7 +152,7 @@ instantiate(const LV2UI_Descriptor* descriptor, ui->reader = std::make_shared<ingen::AtomReader>(ui->world->uri_map(), ui->world->uris(), ui->world->log(), - *ui->client.get()); + *ui->client); // Create empty root graph model ingen::Properties props; |