From 3669e06dd20d43d30bf89ac29e9055e0725b3564 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 Dec 2020 21:25:19 +0100 Subject: Fix unnecessary parameter copying overhead --- src/gui/PluginMenu.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/PluginMenu.hpp') diff --git a/src/gui/PluginMenu.hpp b/src/gui/PluginMenu.hpp index 9b08dc0a..cfdf9f76 100644 --- a/src/gui/PluginMenu.hpp +++ b/src/gui/PluginMenu.hpp @@ -45,7 +45,7 @@ public: PluginMenu(ingen::World& world); void clear(); - void add_plugin(std::shared_ptr p); + void add_plugin(const std::shared_ptr& p); sigc::signal> signal_load_plugin; @@ -66,10 +66,10 @@ private: const LV2Children& children, std::set& ancestors); - void add_plugin_to_menu(MenuRecord& menu, - std::shared_ptr p); + void add_plugin_to_menu(MenuRecord& menu, + const std::shared_ptr& p); - void load_plugin(std::weak_ptr weak_plugin); + void load_plugin(const std::weak_ptr& weak_plugin); ingen::World& _world; MenuRecord _classless_menu; -- cgit v1.2.1