summaryrefslogtreecommitdiff
path: root/include/llmr/map
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2014-06-01 15:32:03 -0700
committerJustin R. Miller <incanus@codesorcery.net>2014-06-01 15:32:03 -0700
commite5a78c931a0821c1b4584fc1a31bdef33c0d90c4 (patch)
treefd665e9d42d716e3fd4203e51953279fa90d8c4a /include/llmr/map
parent93e8386af479001f445df642c4e1372720e1f5a6 (diff)
downloadqtlocation-mapboxgl-e5a78c931a0821c1b4584fc1a31bdef33c0d90c4.tar.gz
make some more getter functions constant
Diffstat (limited to 'include/llmr/map')
-rw-r--r--include/llmr/map/map.hpp4
-rw-r--r--include/llmr/map/transform.hpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/include/llmr/map/map.hpp b/include/llmr/map/map.hpp
index abcaa159dd..e20803b99e 100644
--- a/include/llmr/map/map.hpp
+++ b/include/llmr/map/map.hpp
@@ -81,8 +81,8 @@ public:
void resetZoom();
void startScaling();
void stopScaling();
- double getMinZoom();
- double getMaxZoom();
+ double getMinZoom() const;
+ double getMaxZoom() const;
// Rotation
void rotateBy(double sx, double sy, double ex, double ey, double duration = 0);
diff --git a/include/llmr/map/transform.hpp b/include/llmr/map/transform.hpp
index 6ab3d4b841..31e6f2fc63 100644
--- a/include/llmr/map/transform.hpp
+++ b/include/llmr/map/transform.hpp
@@ -39,8 +39,8 @@ public:
double getScale() const;
void startScaling();
void stopScaling();
- double getMinZoom();
- double getMaxZoom();
+ double getMinZoom() const;
+ double getMaxZoom() const;
// Angle
void rotateBy(double sx, double sy, double ex, double ey, time duration = 0);
@@ -71,7 +71,7 @@ private:
void _clearRotating();
void _clearScaling();
- void constrain(double& scale, double& y);
+ void constrain(double& scale, double& y) const;
private:
mutable uv::rwlock mtx;