summaryrefslogtreecommitdiffstats
path: root/src/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 /src/client
parent0aea3dae1101e6f21f4ab51fd3301d2786b7f5c4 (diff)
downloadingen-6436ce26daefba37c7a612591a33b18365db69b7.tar.gz
ingen-6436ce26daefba37c7a612591a33b18365db69b7.tar.bz2
ingen-6436ce26daefba37c7a612591a33b18365db69b7.zip
Pass by value and use std::move
Diffstat (limited to 'src/client')
-rw-r--r--src/client/BlockModel.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/client/BlockModel.cpp b/src/client/BlockModel.cpp
index a3018939..3d68d8da 100644
--- a/src/client/BlockModel.cpp
+++ b/src/client/BlockModel.cpp
@@ -41,14 +41,12 @@ BlockModel::BlockModel(URIs& uris,
{
}
-BlockModel::BlockModel(URIs& uris,
- const URI& plugin_uri,
- const Raul::Path& path)
- : ObjectModel(uris, path)
- , _plugin_uri(plugin_uri)
- , _num_values(0)
- , _min_values(nullptr)
- , _max_values(nullptr)
+BlockModel::BlockModel(URIs& uris, URI plugin_uri, const Raul::Path& path)
+ : ObjectModel(uris, path)
+ , _plugin_uri(std::move(plugin_uri))
+ , _num_values(0)
+ , _min_values(nullptr)
+ , _max_values(nullptr)
{
}