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 --- src/server/ControlBindings.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/ControlBindings.hpp') diff --git a/src/server/ControlBindings.hpp b/src/server/ControlBindings.hpp index aed1b607..756ddd66 100644 --- a/src/server/ControlBindings.hpp +++ b/src/server/ControlBindings.hpp @@ -67,7 +67,7 @@ public: /** One binding of a controller to a port. */ struct Binding : public boost::intrusive::set_base_hook<>, public Raul::Maid::Disposable { - Binding(Key k=Key(), PortImpl* p=nullptr) : key(k), port(p) {} + Binding(Key k=Key(), PortImpl* p=nullptr) : key(std::move(k)), port(p) {} inline bool operator<(const Binding& rhs) const { return key < rhs.key; } -- cgit v1.2.1