summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-06-06 10:32:38 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-06-10 19:36:47 +0300
commitf5631d8ef5a1307e50975ab2f767dd7ee544f466 (patch)
treea73219dd10641356486f19050c4822ab35807f5c /include
parentad53132e5d56fbd0ae90cfde2e2b26977ad0b433 (diff)
downloadqtlocation-mapboxgl-f5631d8ef5a1307e50975ab2f767dd7ee544f466.tar.gz
[core] Make tile id unwrapTo() const
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/tile/tile_id.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mbgl/tile/tile_id.hpp b/include/mbgl/tile/tile_id.hpp
index 7371916449..2e116bd8cf 100644
--- a/include/mbgl/tile/tile_id.hpp
+++ b/include/mbgl/tile/tile_id.hpp
@@ -58,7 +58,7 @@ public:
uint32_t overscaleFactor() const;
OverscaledTileID scaledTo(uint8_t z) const;
UnwrappedTileID toUnwrapped() const;
- OverscaledTileID unwrapTo(int16_t wrap);
+ OverscaledTileID unwrapTo(int16_t wrap) const;
uint8_t overscaledZ;
int16_t wrap;
@@ -85,7 +85,7 @@ public:
std::array<UnwrappedTileID, 4> children() const;
OverscaledTileID overscaleTo(uint8_t z) const;
float pixelsToTileUnits(float pixelValue, float zoom) const;
- UnwrappedTileID unwrapTo(int16_t wrap);
+ UnwrappedTileID unwrapTo(int16_t wrap) const;
int16_t wrap;
CanonicalTileID canonical;
@@ -194,7 +194,7 @@ inline UnwrappedTileID OverscaledTileID::toUnwrapped() const {
return { wrap, canonical };
}
-inline OverscaledTileID OverscaledTileID::unwrapTo(int16_t newWrap) {
+inline OverscaledTileID OverscaledTileID::unwrapTo(int16_t newWrap) const {
return { overscaledZ, newWrap, canonical };
}
@@ -222,7 +222,7 @@ inline bool UnwrappedTileID::operator<(const UnwrappedTileID& rhs) const {
return std::tie(wrap, canonical) < std::tie(rhs.wrap, rhs.canonical);
}
-inline UnwrappedTileID UnwrappedTileID::unwrapTo(int16_t newWrap) {
+inline UnwrappedTileID UnwrappedTileID::unwrapTo(int16_t newWrap) const {
return { newWrap, canonical };
}