From cba264d3555e2741665693da416f9649b8cc3a49 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 Dec 2020 21:21:49 +0100 Subject: Fix redundant calls to smart pointer get() methods --- src/gui/PortMenu.cpp | 2 +- src/gui/ingen_gui_lv2.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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(ui->world->uri_map(), ui->world->uris(), ui->world->log(), - *ui->client.get()); + *ui->client); // Create empty root graph model ingen::Properties props; -- cgit v1.2.1