From e5a78c931a0821c1b4584fc1a31bdef33c0d90c4 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Sun, 1 Jun 2014 15:32:03 -0700 Subject: make some more getter functions constant --- include/llmr/map/map.hpp | 4 ++-- include/llmr/map/transform.hpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'include/llmr/map') 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; -- cgit v1.2.1