summaryrefslogtreecommitdiff
path: root/include/mbgl/storage
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-02-11 12:17:33 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-02-11 12:17:33 +0100
commit5726d2b357c1617891df5d19160d0e6478aa0e0e (patch)
tree3d0461d5c81085390e9e951f58008c2dbf44ae70 /include/mbgl/storage
parentbd08984713c4dff30e5a157c0881019b85106f84 (diff)
downloadqtlocation-mapboxgl-5726d2b357c1617891df5d19160d0e6478aa0e0e.tar.gz
[core] use std::move() to prevent copies
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r--include/mbgl/storage/resource.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/storage/resource.hpp b/include/mbgl/storage/resource.hpp
index 4c68e71003..edd9f58c72 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> tileData_ = {})
: kind(kind_),
url(url_),
- tileData(tileData_) {
+ tileData(std::move(tileData_)) {
}
static Resource style(const std::string& url);