diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-12-01 17:45:21 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-12-03 15:38:36 +0100 |
commit | 478472e501a6aa579174f547277176c19104deb1 (patch) | |
tree | 12f9852c9c64725f8bbded04ee916c720fdf9dd8 /src/mbgl/util | |
parent | d5fb535058d4d97567b08064e0203f45c2c8370f (diff) | |
download | qtlocation-mapboxgl-478472e501a6aa579174f547277176c19104deb1.tar.gz |
[core] add std::move to constructors
Diffstat (limited to 'src/mbgl/util')
-rw-r--r-- | src/mbgl/util/work_request.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/util/work_request.cpp b/src/mbgl/util/work_request.cpp index 819585ae56..eb84df7bf2 100644 --- a/src/mbgl/util/work_request.cpp +++ b/src/mbgl/util/work_request.cpp @@ -2,10 +2,11 @@ #include <mbgl/util/work_task.hpp> #include <cassert> +#include <utility> namespace mbgl { -WorkRequest::WorkRequest(Task task_) : task(task_) { +WorkRequest::WorkRequest(Task task_) : task(std::move(task_)) { assert(task); } |