diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 14:42:16 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 01:48:48 +0200 |
commit | dbb38be5ccda387ef458583b5a85c03b59a5e05c (patch) | |
tree | ca6e767d1e7d6aa86efa992c14b6f1e967309aa5 /src/client/ClientStore.cpp | |
parent | cfee0cd7d2a704153df73449be38fcef60b958eb (diff) | |
download | ingen-dbb38be5ccda387ef458583b5a85c03b59a5e05c.tar.gz ingen-dbb38be5ccda387ef458583b5a85c03b59a5e05c.tar.bz2 ingen-dbb38be5ccda387ef458583b5a85c03b59a5e05c.zip |
Fix unnecessary parameter copies
Diffstat (limited to 'src/client/ClientStore.cpp')
-rw-r--r-- | src/client/ClientStore.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp index e494e874..a0c30c85 100644 --- a/src/client/ClientStore.cpp +++ b/src/client/ClientStore.cpp @@ -35,9 +35,9 @@ namespace ingen { namespace client { -ClientStore::ClientStore(URIs& uris, - Log& log, - SPtr<SigClientInterface> emitter) +ClientStore::ClientStore(URIs& uris, + Log& log, + const SPtr<SigClientInterface>& emitter) : _uris(uris) , _log(log) , _emitter(emitter) @@ -57,7 +57,7 @@ ClientStore::clear() } void -ClientStore::add_object(SPtr<ObjectModel> object) +ClientStore::add_object(const SPtr<ObjectModel>& object) { // If we already have "this" object, merge the existing one into the new // one (with precedence to the new values). @@ -189,7 +189,7 @@ ClientStore::resource(const URI& uri) const } void -ClientStore::add_plugin(SPtr<PluginModel> pm) +ClientStore::add_plugin(const SPtr<PluginModel>& pm) { SPtr<PluginModel> existing = _plugin(pm->uri()); if (existing) { |