summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation/annotation_tile.cpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-12 13:53:35 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-13 23:32:05 +0300
commit4161d197fdb59587b3ef5deac321605fc911a2ab (patch)
tree0bf4fa48a4e42fac0afce07f099ebace3ff5a698 /src/mbgl/annotation/annotation_tile.cpp
parent92f605df326ac4b1f4dd65928d6350b97eea6096 (diff)
downloadqtlocation-mapboxgl-4161d197fdb59587b3ef5deac321605fc911a2ab.tar.gz
[tidy] Check modernize-pass-by-value
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html
Diffstat (limited to 'src/mbgl/annotation/annotation_tile.cpp')
-rw-r--r--src/mbgl/annotation/annotation_tile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/annotation/annotation_tile.cpp b/src/mbgl/annotation/annotation_tile.cpp
index 92234f5000..79e281acce 100644
--- a/src/mbgl/annotation/annotation_tile.cpp
+++ b/src/mbgl/annotation/annotation_tile.cpp
@@ -36,8 +36,8 @@ optional<Value> AnnotationTileFeature::getValue(const std::string& key) const {
return optional<Value>();
}
-AnnotationTileLayer::AnnotationTileLayer(const std::string &name_)
- : name(name_) {}
+AnnotationTileLayer::AnnotationTileLayer(std::string name_)
+ : name(std::move(name_)) {}
util::ptr<GeometryTileLayer> AnnotationTileData::getLayer(const std::string& name) const {
auto it = layers.find(name);