summaryrefslogtreecommitdiff
path: root/include/mbgl/util/run_loop.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-12-01 17:45:21 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-12-03 15:38:36 +0100
commit478472e501a6aa579174f547277176c19104deb1 (patch)
tree12f9852c9c64725f8bbded04ee916c720fdf9dd8 /include/mbgl/util/run_loop.hpp
parentd5fb535058d4d97567b08064e0203f45c2c8370f (diff)
downloadqtlocation-mapboxgl-478472e501a6aa579174f547277176c19104deb1.tar.gz
[core] add std::move to constructors
Diffstat (limited to 'include/mbgl/util/run_loop.hpp')
-rw-r--r--include/mbgl/util/run_loop.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/util/run_loop.hpp b/include/mbgl/util/run_loop.hpp
index 3cf92f56d0..fef00743f7 100644
--- a/include/mbgl/util/run_loop.hpp
+++ b/include/mbgl/util/run_loop.hpp
@@ -114,7 +114,7 @@ private:
class Invoker : public WorkTask {
public:
Invoker(F&& f, P&& p, std::shared_ptr<std::atomic<bool>> canceled_ = nullptr)
- : canceled(canceled_),
+ : canceled(std::move(canceled_)),
func(std::move(f)),
params(std::move(p)) {
}