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 /src/mbgl/renderer/buckets/line_bucket.cpp | |
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 'src/mbgl/renderer/buckets/line_bucket.cpp')
-rw-r--r-- | src/mbgl/renderer/buckets/line_bucket.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mbgl/renderer/buckets/line_bucket.cpp b/src/mbgl/renderer/buckets/line_bucket.cpp index 809d8df6d3..256ce35eb5 100644 --- a/src/mbgl/renderer/buckets/line_bucket.cpp +++ b/src/mbgl/renderer/buckets/line_bucket.cpp @@ -5,16 +5,17 @@ #include <mbgl/util/constants.hpp> #include <cassert> +#include <utility> namespace mbgl { using namespace style; -LineBucket::LineBucket(const LineBucket::PossiblyEvaluatedLayoutProperties& layout_, +LineBucket::LineBucket(LineBucket::PossiblyEvaluatedLayoutProperties layout_, const std::map<std::string, Immutable<LayerProperties>>& layerPaintProperties, const float zoom_, const uint32_t overscaling_) - : layout(layout_), zoom(zoom_), overscaling(overscaling_) { + : layout(std::move(layout_)), zoom(zoom_), overscaling(overscaling_) { for (const auto& pair : layerPaintProperties) { paintPropertyBinders.emplace( std::piecewise_construct, |