summaryrefslogtreecommitdiff
path: root/include/mbgl/map/tile_data.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-11-25 17:50:19 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-11-26 15:13:14 -0800
commit41e90b4150ba8302c0c6f9bec0f53059483fea9e (patch)
tree1febc0cc25c4663ccc49debff79757a751271c4a /include/mbgl/map/tile_data.hpp
parent23b61f808cca8d926c11bbb738f384522e41dbbd (diff)
downloadqtlocation-mapboxgl-41e90b4150ba8302c0c6f9bec0f53059483fea9e.tar.gz
Pass SourceInfo as reference
Diffstat (limited to 'include/mbgl/map/tile_data.hpp')
-rw-r--r--include/mbgl/map/tile_data.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/map/tile_data.hpp b/include/mbgl/map/tile_data.hpp
index 7fbb5d5068..c8a13b83de 100644
--- a/include/mbgl/map/tile_data.hpp
+++ b/include/mbgl/map/tile_data.hpp
@@ -46,7 +46,7 @@ public:
};
public:
- TileData(Tile::ID const& id, const util::ptr<SourceInfo> &source);
+ TileData(Tile::ID const& id, const SourceInfo&);
~TileData();
void request(uv::worker&, FileSource&, float pixelRatio, std::function<void ()> callback);
@@ -69,7 +69,7 @@ public:
std::atomic<State> state;
public:
- util::ptr<SourceInfo> source;
+ const SourceInfo& source;
protected:
std::unique_ptr<Request> req;