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/bookmark.cpp | |
parent | 82efac282faf53afca3032947be9ae509cffee90 (diff) |
Put “const” modifier where needed.
Diffstat (limited to 'map/bookmark.cpp')
-rw-r--r-- | map/bookmark.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/map/bookmark.cpp b/map/bookmark.cpp index a1adad3392..4fdcdc8ead 100644 --- a/map/bookmark.cpp +++ b/map/bookmark.cpp @@ -71,7 +71,7 @@ void BookmarkCategory::AddBookmark(m2::PointD const & ptOrg, BookmarkData const void BookmarkCategory::ReplaceBookmark(size_t index, BookmarkData const & bm) { - Controller c = base_t::GetController(); + Controller & c = base_t::GetController(); ASSERT_LESS (index, c.GetUserMarkCount(), ()); if (index < c.GetUserMarkCount()) { @@ -124,7 +124,7 @@ template <class T> void DeleteItem(vector<T> & v, size_t i) void BookmarkCategory::DeleteBookmark(size_t index) { - base_t::Controller c = base_t::GetController(); + base_t::Controller & c = base_t::GetController(); ASSERT_LESS(index, c.GetUserMarkCount(), ()); c.DeleteUserMark(index); } |