diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-05-09 10:50:04 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-05-12 18:07:36 +0300 |
commit | 870067360f8195cadf2e1953ac20a56a44377f9f (patch) | |
tree | 084b04252cbb7bfcac184d123008ea63ca33adaf /test/util | |
parent | baeaad83a3a3e00460b28a0afded18b8f1b83efc (diff) | |
download | qtlocation-mapboxgl-870067360f8195cadf2e1953ac20a56a44377f9f.tar.gz |
[tidy] modernize-pass-by-value
Diffstat (limited to 'test/util')
-rw-r--r-- | test/util/merge_lines.test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/util/merge_lines.test.cpp b/test/util/merge_lines.test.cpp index 8a3a400887..6c8387c451 100644 --- a/test/util/merge_lines.test.cpp +++ b/test/util/merge_lines.test.cpp @@ -2,6 +2,7 @@ #include <mbgl/layout/merge_lines.hpp> #include <mbgl/layout/symbol_feature.hpp> +#include <utility> const std::u16string aaa = u"a"; const std::u16string bbb = u"b"; @@ -12,10 +13,10 @@ class GeometryTileFeatureStub : public GeometryTileFeature { public: GeometryTileFeatureStub(optional<FeatureIdentifier> id_, FeatureType type_, GeometryCollection geometry_, std::unordered_map<std::string, Value> properties_) : - id(id_), + id(std::move(id_)), type(type_), - geometry(geometry_), - properties(properties_) + geometry(std::move(geometry_)), + properties(std::move(properties_)) {} FeatureType getType() const override { return type; } |