From bd89362f08dc07b3444d19bc373f2b4f8bc47b2c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Dec 2017 16:13:15 -0500 Subject: Use std::move to potentially avoid copying --- ingen/client/ArcModel.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ingen/client') diff --git a/ingen/client/ArcModel.hpp b/ingen/client/ArcModel.hpp index 13cf1c92..8b129a00 100644 --- a/ingen/client/ArcModel.hpp +++ b/ingen/client/ArcModel.hpp @@ -48,8 +48,8 @@ private: friend class ClientStore; ArcModel(SPtr tail, SPtr head) - : _tail(tail) - , _head(head) + : _tail(std::move(tail)) + , _head(std::move(head)) { assert(_tail); assert(_head); -- cgit v1.2.1