diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-20 12:38:09 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-23 20:05:40 +0200 |
commit | 9dbd0a666a25b3950d461d41f6c41fc8acea8d81 (patch) | |
tree | 757196c0d7efc9c6f198098be5d227d754b0b378 /platform/glfw | |
parent | 76b99eb8e8f0138a1020b01e45bf8fd859051b1c (diff) | |
download | qtlocation-mapboxgl-9dbd0a666a25b3950d461d41f6c41fc8acea8d81.tar.gz |
[core] Fix modernize-pass-by-value errors
As reported by clang-tidy-8.
Diffstat (limited to 'platform/glfw')
-rw-r--r-- | platform/glfw/test_writer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/glfw/test_writer.cpp b/platform/glfw/test_writer.cpp index 9debaad643..9fe06cc2ca 100644 --- a/platform/glfw/test_writer.cpp +++ b/platform/glfw/test_writer.cpp @@ -7,6 +7,7 @@ #include <cmath> #include <fstream> +#include <utility> using Writer = rapidjson::PrettyWriter<rapidjson::StringBuffer>; @@ -19,7 +20,7 @@ public: class SetCamera final : public TestOperationSerializer { public: - SetCamera(const mbgl::CameraOptions& camera_) : camera(camera_) {} + SetCamera(mbgl::CameraOptions camera_) : camera(std::move(camera_)) {} void serialize(Writer& writer) const override { if (camera.zoom) { |