diff options
author | vng <viktor.govako@gmail.com> | 2014-06-05 20:31:33 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:16:44 +0300 |
commit | 54877816d28ec828ce8372702022fd44a9af3da7 (patch) | |
tree | 7af179150f96c26f39bfec48ff89d2b3a70c0680 /map/user_mark_container.hpp | |
parent | 82efac282faf53afca3032947be9ae509cffee90 (diff) |
Put “const” modifier where needed.
Diffstat (limited to 'map/user_mark_container.hpp')
-rw-r--r-- | map/user_mark_container.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/map/user_mark_container.hpp b/map/user_mark_container.hpp index 59481a0023..e649435b4a 100644 --- a/map/user_mark_container.hpp +++ b/map/user_mark_container.hpp @@ -31,7 +31,7 @@ public: Controller(UserMarkContainer * container) : m_container(container) {} - UserMark * CreateUserMark(m2::PointD ptOrg) { return m_container->CreateUserMark(ptOrg); } + UserMark * CreateUserMark(m2::PointD const & ptOrg) { return m_container->CreateUserMark(ptOrg); } size_t GetUserMarkCount() const { return m_container->GetUserMarkCount(); } UserMark const * GetUserMark(size_t index) const { return m_container->GetUserMark(index); } UserMark * GetUserMarkForEdit(size_t index) { return m_container->GetUserMark(index); } @@ -61,7 +61,7 @@ public: // If not found mark on rect result is NULL // If mark is found in "d" return distance from rect center // In multiple select choose mark with min(d) - UserMark const * FindMarkInRect(m2::AnyRectD const & rect, double & d); + UserMark const * FindMarkInRect(m2::AnyRectD const & rect, double & d) const; void Draw(PaintOverlayEvent const & e, UserMarkDLCache * cache) const; void ActivateMark(UserMark const * mark); |