summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorartemp <artem@mapnik.org>2014-10-30 10:43:58 -0400
committerartemp <artem@mapnik.org>2014-10-30 10:43:58 -0400
commitfd2d8f48cbf82326b2a1fb43f153e4452c0d9900 (patch)
tree15f384f61fdd7eee5cdecddcfd2db92280246ae6 /src
parentacb65f8f6779f79a47a7ab0aabd699beb9e5c3f6 (diff)
downloadqtlocation-mapboxgl-fd2d8f48cbf82326b2a1fb43f153e4452c0d9900.tar.gz
pass Tile::ID by const ref
Diffstat (limited to 'src')
-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
3 files changed, 3 insertions, 3 deletions
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) {
}