diff options
author | Kirill Zhdanovich <kzhdanovich@gmail.com> | 2013-04-23 19:39:42 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:53:38 +0300 |
commit | b28e16a20f3a932d2f43c941a106c7f0eb43283c (patch) | |
tree | e95eae31bb185d1b52cb7f01351083c979626cdd /map/bookmark.cpp | |
parent | fbf3fcf2054b55d7b44739f9dae28cbdf734026d (diff) |
GetBookmark returns pointer to non constant bookmark.
Setter for bookmark's name and type.
Diffstat (limited to 'map/bookmark.cpp')
-rw-r--r-- | map/bookmark.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/map/bookmark.cpp b/map/bookmark.cpp index 3ed8885e13..62ae997210 100644 --- a/map/bookmark.cpp +++ b/map/bookmark.cpp @@ -75,6 +75,11 @@ Bookmark const * BookmarkCategory::GetBookmark(size_t index) const return (index < m_bookmarks.size() ? m_bookmarks[index] : 0); } +Bookmark * BookmarkCategory::GetBookmark(size_t index) +{ + return (index < m_bookmarks.size() ? m_bookmarks[index] : 0); +} + int BookmarkCategory::GetBookmark(m2::PointD const org, double const squareDistance) const { for (size_t i = 0; i < m_bookmarks.size(); ++i) |