From 6436ce26daefba37c7a612591a33b18365db69b7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 1 Aug 2020 16:05:03 +0200 Subject: Pass by value and use std::move --- src/client/BlockModel.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/client') 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) { } -- cgit v1.2.1