diff --git a/include/mbgl/storage/resource.hpp b/include/mbgl/storage/resource.hpp index 4c68e7100..edd9f58c7 100644 --- a/include/mbgl/storage/resource.hpp +++ b/include/mbgl/storage/resource.hpp @@ -31,7 +31,7 @@ public: Resource(Kind kind_, const std::string& url_, optional tileData_ = {}) : kind(kind_), url(url_), - tileData(tileData_) { + tileData(std::move(tileData_)) { } static Resource style(const std::string& url); diff --git a/platform/default/online_file_source.cpp b/platform/default/online_file_source.cpp index c4a0be2af..a095b86fb 100644 --- a/platform/default/online_file_source.cpp +++ b/platform/default/online_file_source.cpp @@ -190,7 +190,7 @@ std::unique_ptr OnlineFileSource::request(const Resource& resource, OnlineFileRequestImpl::OnlineFileRequestImpl(FileRequest* key_, const Resource& resource_, Callback callback_, OnlineFileSource::Impl& impl) : key(key_), resource(resource_), - callback(callback_) { + callback(std::move(callback_)) { // Force an immediate first request if we don't have an expiration time. schedule(impl, !resource.priorExpires); } diff --git a/src/mbgl/annotation/annotation_tile.cpp b/src/mbgl/annotation/annotation_tile.cpp index a4590ffe3..3a038cc6e 100644 --- a/src/mbgl/annotation/annotation_tile.cpp +++ b/src/mbgl/annotation/annotation_tile.cpp @@ -10,7 +10,7 @@ AnnotationTileFeature::AnnotationTileFeature(FeatureType type_, GeometryCollecti std::unordered_map properties_) : type(type_), properties(std::move(properties_)), - geometries(geometries_) {} + geometries(std::move(geometries_)) {} optional AnnotationTileFeature::getValue(const std::string& key) const { auto it = properties.find(key); diff --git a/src/mbgl/renderer/debug_bucket.cpp b/src/mbgl/renderer/debug_bucket.cpp index c4eb4e8b0..909316a34 100644 --- a/src/mbgl/renderer/debug_bucket.cpp +++ b/src/mbgl/renderer/debug_bucket.cpp @@ -11,8 +11,8 @@ using namespace mbgl; DebugBucket::DebugBucket(const TileID id, const TileData::State state_, optional modified_, optional expires_, MapDebugOptions debugMode_) : state(state_), - modified(modified_), - expires(expires_), + modified(std::move(modified_)), + expires(std::move(expires_)), debugMode(debugMode_) { double baseline = 200; if (debugMode & MapDebugOptions::ParseStatus) {