summaryrefslogtreecommitdiffstats
path: root/src/gui/ThreadedLoader.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-25 16:13:15 -0500
committerDavid Robillard <d@drobilla.net>2017-12-25 16:26:13 -0500
commitbd89362f08dc07b3444d19bc373f2b4f8bc47b2c (patch)
tree047cd2cf2779d87f1db561186410aa545f632c7b /src/gui/ThreadedLoader.cpp
parent71808f61f7db48a7ab4e16537b94ee5686749909 (diff)
downloadingen-bd89362f08dc07b3444d19bc373f2b4f8bc47b2c.tar.gz
ingen-bd89362f08dc07b3444d19bc373f2b4f8bc47b2c.tar.bz2
ingen-bd89362f08dc07b3444d19bc373f2b4f8bc47b2c.zip
Use std::move to potentially avoid copying
Diffstat (limited to 'src/gui/ThreadedLoader.cpp')
-rw-r--r--src/gui/ThreadedLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/ThreadedLoader.cpp b/src/gui/ThreadedLoader.cpp
index 37636c42..93c97cbd 100644
--- a/src/gui/ThreadedLoader.cpp
+++ b/src/gui/ThreadedLoader.cpp
@@ -32,7 +32,7 @@ namespace GUI {
ThreadedLoader::ThreadedLoader(App& app, SPtr<Interface> engine)
: _app(app)
, _sem(0)
- , _engine(engine)
+ , _engine(std::move(engine))
, _exit_flag(false)
, _thread(&ThreadedLoader::run, this)
{