diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-02-26 17:31:02 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-02-26 22:31:59 +0200 |
commit | 25d8eab9737111ab1f2af369125705f241543e51 (patch) | |
tree | 5e6d016618eb74fa814c665cdaffd372f1e94619 /include | |
parent | 353d07f40ff62fea11d0faaba364f0b3e5f4dd40 (diff) | |
download | qtlocation-mapboxgl-25d8eab9737111ab1f2af369125705f241543e51.tar.gz |
[core] Fix mbgl::Pass constructor
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/util/pass_types.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/util/pass_types.hpp b/include/mbgl/util/pass_types.hpp index 5415a3177f..227a81778d 100644 --- a/include/mbgl/util/pass_types.hpp +++ b/include/mbgl/util/pass_types.hpp @@ -8,7 +8,7 @@ namespace mbgl { template <typename T> class Pass { public: - Pass(T&& obj_) : obj(std::forward<T>(obj_)) {} + Pass(T obj_) : obj(std::move(obj_)) {} Pass(Pass&&) noexcept = default; Pass(const Pass&) = delete; Pass& operator=(const Pass&) = delete; |