summaryrefslogtreecommitdiffstats
path: root/ingen/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-01 16:05:03 +0200
committerDavid Robillard <d@drobilla.net>2020-08-02 01:48:48 +0200
commit6436ce26daefba37c7a612591a33b18365db69b7 (patch)
tree88da992e3de43c90ee98f8df73a7af21cd77d26f /ingen/client
parent0aea3dae1101e6f21f4ab51fd3301d2786b7f5c4 (diff)
downloadingen-6436ce26daefba37c7a612591a33b18365db69b7.tar.gz
ingen-6436ce26daefba37c7a612591a33b18365db69b7.tar.bz2
ingen-6436ce26daefba37c7a612591a33b18365db69b7.zip
Pass by value and use std::move
Diffstat (limited to 'ingen/client')
-rw-r--r--ingen/client/BlockModel.hpp4
-rw-r--r--ingen/client/GraphModel.hpp7
2 files changed, 6 insertions, 5 deletions
diff --git a/ingen/client/BlockModel.hpp b/ingen/client/BlockModel.hpp
index 511e5712..d003b7d1 100644
--- a/ingen/client/BlockModel.hpp
+++ b/ingen/client/BlockModel.hpp
@@ -84,9 +84,7 @@ public:
protected:
friend class ClientStore;
- BlockModel(URIs& uris,
- const URI& plugin_uri,
- const Raul::Path& path);
+ BlockModel(URIs& uris, URI plugin_uri, const Raul::Path& path);
BlockModel(URIs& uris,
const SPtr<PluginModel>& plugin,
diff --git a/ingen/client/GraphModel.hpp b/ingen/client/GraphModel.hpp
index c11c419e..2248e7e3 100644
--- a/ingen/client/GraphModel.hpp
+++ b/ingen/client/GraphModel.hpp
@@ -60,8 +60,11 @@ private:
friend class ClientStore;
GraphModel(URIs& uris, const Raul::Path& graph_path)
- : BlockModel(uris, uris.ingen_Graph, graph_path)
- {}
+ : BlockModel(uris,
+ static_cast<const URI&>(uris.ingen_Graph),
+ graph_path)
+ {
+ }
void clear() override;
void add_child(const SPtr<ObjectModel>& c) override;