diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-02-11 12:17:33 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-02-11 12:17:33 +0100 |
commit | 5726d2b357c1617891df5d19160d0e6478aa0e0e (patch) | |
tree | 3d0461d5c81085390e9e951f58008c2dbf44ae70 /include | |
parent | bd08984713c4dff30e5a157c0881019b85106f84 (diff) | |
download | qtlocation-mapboxgl-5726d2b357c1617891df5d19160d0e6478aa0e0e.tar.gz |
[core] use std::move() to prevent copies
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/storage/resource.hpp | 2 |
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); |