summaryrefslogtreecommitdiffstats
path: root/src/gui/ObjectMenu.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-14 21:25:19 +0100
committerDavid Robillard <d@drobilla.net>2020-12-14 22:04:29 +0100
commit3669e06dd20d43d30bf89ac29e9055e0725b3564 (patch)
tree6086002971126dba88aa762aa1d487069395a137 /src/gui/ObjectMenu.cpp
parent6d82745afdeff69ace846e0c10bf95b3362e1c03 (diff)
downloadingen-3669e06dd20d43d30bf89ac29e9055e0725b3564.tar.gz
ingen-3669e06dd20d43d30bf89ac29e9055e0725b3564.tar.bz2
ingen-3669e06dd20d43d30bf89ac29e9055e0725b3564.zip
Fix unnecessary parameter copying overhead
Diffstat (limited to 'src/gui/ObjectMenu.cpp')
-rw-r--r--src/gui/ObjectMenu.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/ObjectMenu.cpp b/src/gui/ObjectMenu.cpp
index 91185cee..935ff683 100644
--- a/src/gui/ObjectMenu.cpp
+++ b/src/gui/ObjectMenu.cpp
@@ -52,7 +52,8 @@ ObjectMenu::ObjectMenu(BaseObjectType* cobject,
}
void
-ObjectMenu::init(App& app, std::shared_ptr<const client::ObjectModel> object)
+ObjectMenu::init(App& app,
+ const std::shared_ptr<const client::ObjectModel>& object)
{
_app = &app;
_object = object;