summaryrefslogtreecommitdiff
path: root/test/util
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-05-09 10:50:04 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-05-12 18:07:36 +0300
commit870067360f8195cadf2e1953ac20a56a44377f9f (patch)
tree084b04252cbb7bfcac184d123008ea63ca33adaf /test/util
parentbaeaad83a3a3e00460b28a0afded18b8f1b83efc (diff)
downloadqtlocation-mapboxgl-870067360f8195cadf2e1953ac20a56a44377f9f.tar.gz
[tidy] modernize-pass-by-value
Diffstat (limited to 'test/util')
-rw-r--r--test/util/merge_lines.test.cpp7
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; }