diff options
author | David Robillard <d@drobilla.net> | 2017-12-25 16:13:15 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-25 16:26:13 -0500 |
commit | bd89362f08dc07b3444d19bc373f2b4f8bc47b2c (patch) | |
tree | 047cd2cf2779d87f1db561186410aa545f632c7b /src/server/ControlBindings.hpp | |
parent | 71808f61f7db48a7ab4e16537b94ee5686749909 (diff) | |
download | ingen-bd89362f08dc07b3444d19bc373f2b4f8bc47b2c.tar.gz ingen-bd89362f08dc07b3444d19bc373f2b4f8bc47b2c.tar.bz2 ingen-bd89362f08dc07b3444d19bc373f2b4f8bc47b2c.zip |
Use std::move to potentially avoid copying
Diffstat (limited to 'src/server/ControlBindings.hpp')
-rw-r--r-- | src/server/ControlBindings.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |