pass StyleLayer objects as const ref instead of a shared pointer

This commit is contained in:
Konstantin Käfer
2015-03-04 16:34:23 +01:00
parent d161e0c3c3
commit 0151fe6c01
25 changed files with 100 additions and 94 deletions

View File

@@ -37,9 +37,9 @@ public:
const SourceInfo&, FileSource &);
~VectorTileData();
virtual void parse();
virtual void render(Painter &painter, util::ptr<StyleLayer> layer_desc, const mat4 &matrix);
virtual bool hasData(StyleLayer const& layer_desc) const;
void parse() override;
void render(Painter &painter, const StyleLayer &layer_desc, const mat4 &matrix) override;
bool hasData(StyleLayer const& layer_desc) const override;
protected:
// Holds the actual geometries in this tile.