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 /platform/default/headless_view.cpp | |
parent | d5fb535058d4d97567b08064e0203f45c2c8370f (diff) | |
download | qtlocation-mapboxgl-478472e501a6aa579174f547277176c19104deb1.tar.gz |
[core] add std::move to constructors
Diffstat (limited to 'platform/default/headless_view.cpp')
-rw-r--r-- | platform/default/headless_view.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/default/headless_view.cpp b/platform/default/headless_view.cpp index 3eaa4949b6..55a8c57773 100644 --- a/platform/default/headless_view.cpp +++ b/platform/default/headless_view.cpp @@ -8,6 +8,7 @@ #include <string> #include <cstring> #include <cassert> +#include <utility> #ifdef MBGL_USE_CGL #include <CoreFoundation/CoreFoundation.h> @@ -26,7 +27,7 @@ HeadlessView::HeadlessView(std::shared_ptr<HeadlessDisplay> display_, float pixelRatio_, uint16_t width, uint16_t height) - : display(display_), pixelRatio(pixelRatio_) { + : display(std::move(display_)), pixelRatio(pixelRatio_) { resize(width, height); } |