diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-03-04 16:34:23 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-03-06 13:26:11 +0100 |
commit | 0151fe6c01367ef03a2ff282b90e32dd3785a7c2 (patch) | |
tree | 25ef4ed68fa401c47d9c31298405cb4ec490565b /src/mbgl/map/tile_data.hpp | |
parent | d161e0c3c39b4466ae94f4f7bee556017aec0f10 (diff) | |
download | qtlocation-mapboxgl-0151fe6c01367ef03a2ff282b90e32dd3785a7c2.tar.gz |
pass StyleLayer objects as const ref instead of a shared pointer
Diffstat (limited to 'src/mbgl/map/tile_data.hpp')
-rw-r--r-- | src/mbgl/map/tile_data.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mbgl/map/tile_data.hpp b/src/mbgl/map/tile_data.hpp index a83a4648dd..fcd741a1f8 100644 --- a/src/mbgl/map/tile_data.hpp +++ b/src/mbgl/map/tile_data.hpp @@ -62,9 +62,8 @@ public: // Override this in the child class. virtual void parse() = 0; - virtual void render(Painter &painter, util::ptr<StyleLayer> layer_desc, const mat4 &matrix) = 0; - virtual bool hasData(StyleLayer const& layer_desc) const = 0; - + virtual void render(Painter &painter, const StyleLayer &layer_desc, const mat4 &matrix) = 0; + virtual bool hasData(StyleLayer const &layer_desc) const = 0; public: const Tile::ID id; |