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/gui/URIEntry.cpp | |
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/gui/URIEntry.cpp')
-rw-r--r-- | src/gui/URIEntry.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/URIEntry.cpp b/src/gui/URIEntry.cpp index 466948e4..30e6edb2 100644 --- a/src/gui/URIEntry.cpp +++ b/src/gui/URIEntry.cpp @@ -23,12 +23,12 @@ namespace Ingen { namespace GUI { -URIEntry::URIEntry(App* app, - const std::set<Raul::URI>& types, - const std::string& value) +URIEntry::URIEntry(App* app, + std::set<Raul::URI> types, + const std::string& value) : Gtk::HBox(false, 4) , _app(app) - , _types(types) + , _types(std::move(types)) , _menu_button(Gtk::manage(new Gtk::Button("≡"))) , _entry(Gtk::manage(new Gtk::Entry())) { |