summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mbgl/map/raster_tile_data.hpp2
-rw-r--r--include/mbgl/map/tile_data.hpp2
-rw-r--r--include/mbgl/map/vector_tile_data.hpp2
-rw-r--r--src/map/raster_tile_data.cpp2
-rw-r--r--src/map/tile_data.cpp2
-rw-r--r--src/map/vector_tile_data.cpp2
6 files changed, 6 insertions, 6 deletions
diff --git a/include/mbgl/map/raster_tile_data.hpp b/include/mbgl/map/raster_tile_data.hpp
index 8ae898f989..97317537b9 100644
--- a/include/mbgl/map/raster_tile_data.hpp
+++ b/include/mbgl/map/raster_tile_data.hpp
@@ -16,7 +16,7 @@ class RasterTileData : public TileData {
friend class TileParser;
public:
- RasterTileData(Tile::ID id, Map &map, const util::ptr<SourceInfo> &source);
+ RasterTileData(Tile::ID const& id, Map &map, const util::ptr<SourceInfo> &source);
~RasterTileData();
virtual void parse();
diff --git a/include/mbgl/map/tile_data.hpp b/include/mbgl/map/tile_data.hpp
index 70297c7f34..d6666f2f70 100644
--- a/include/mbgl/map/tile_data.hpp
+++ b/include/mbgl/map/tile_data.hpp
@@ -40,7 +40,7 @@ public:
};
public:
- TileData(Tile::ID id, Map &map, const util::ptr<SourceInfo> &source);
+ TileData(Tile::ID const& id, Map &map, const util::ptr<SourceInfo> &source);
~TileData();
void request();
diff --git a/include/mbgl/map/vector_tile_data.hpp b/include/mbgl/map/vector_tile_data.hpp
index 9f611fd69c..070456af80 100644
--- a/include/mbgl/map/vector_tile_data.hpp
+++ b/include/mbgl/map/vector_tile_data.hpp
@@ -26,7 +26,7 @@ class VectorTileData : public TileData {
friend class TileParser;
public:
- VectorTileData(Tile::ID id, Map &map, const util::ptr<SourceInfo> &source);
+ VectorTileData(Tile::ID const& id, Map &map, const util::ptr<SourceInfo> &source);
~VectorTileData();
virtual void parse();
virtual void render(Painter &painter, util::ptr<StyleLayer> layer_desc, const mat4 &matrix);
diff --git a/src/map/raster_tile_data.cpp b/src/map/raster_tile_data.cpp
index fbef805f2c..1552e359bd 100644
--- a/src/map/raster_tile_data.cpp
+++ b/src/map/raster_tile_data.cpp
@@ -5,7 +5,7 @@
using namespace mbgl;
-RasterTileData::RasterTileData(Tile::ID id_, Map &map_, const util::ptr<SourceInfo> &source_)
+RasterTileData::RasterTileData(Tile::ID const& id_, Map &map_, const util::ptr<SourceInfo> &source_)
: TileData(id_, map_, source_),
bucket(map.getTexturepool(), properties) {
}
diff --git a/src/map/tile_data.cpp b/src/map/tile_data.cpp
index bb3573ce2d..aa48fd00fe 100644
--- a/src/map/tile_data.cpp
+++ b/src/map/tile_data.cpp
@@ -9,7 +9,7 @@
using namespace mbgl;
-TileData::TileData(Tile::ID id_, Map &map_, const util::ptr<SourceInfo> &source_)
+TileData::TileData(Tile::ID const& id_, Map &map_, const util::ptr<SourceInfo> &source_)
: id(id_),
state(State::initial),
map(map_),
diff --git a/src/map/vector_tile_data.cpp b/src/map/vector_tile_data.cpp
index 80ad3a3fce..133d23efa8 100644
--- a/src/map/vector_tile_data.cpp
+++ b/src/map/vector_tile_data.cpp
@@ -8,7 +8,7 @@
using namespace mbgl;
-VectorTileData::VectorTileData(Tile::ID id_, Map &map_, const util::ptr<SourceInfo> &source_)
+VectorTileData::VectorTileData(Tile::ID const& id_, Map &map_, const util::ptr<SourceInfo> &source_)
: TileData(id_, map_, source_),
depth(id.z >= source->max_zoom ? map.getMaxZoom() - id.z : 1) {
}