diff options
author | v.mikhaylenko <v.mikhaylenko@corp.mail.ru> | 2015-06-23 12:31:45 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:52:49 +0300 |
commit | 078ea88c16fad66817c9b2dde6ff207be6690794 (patch) | |
tree | 7fc7b305829a43e3e9c455feca4e3bb0e5f044de /map/bookmark.cpp | |
parent | 377513b29c6096d0a33d75e9327fa78bbf830b80 (diff) |
[ios] Added open hours string formatter.
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 57e2b625dc..99398a4487 100644 --- a/map/bookmark.cpp +++ b/map/bookmark.cpp @@ -167,13 +167,13 @@ size_t BookmarkCategory::GetBookmarksCount() const Bookmark const * BookmarkCategory::GetBookmark(size_t index) const { base_t::Controller const & c = base_t::GetController(); - return static_cast<Bookmark const *>(index < c.GetUserMarkCount() ? c.GetUserMark(index) : 0); + return static_cast<Bookmark const *>(index < c.GetUserMarkCount() ? c.GetUserMark(index) : nullptr); } Bookmark * BookmarkCategory::GetBookmark(size_t index) { base_t::Controller & c = base_t::GetController(); - return static_cast<Bookmark *>(index < c.GetUserMarkCount() ? c.GetUserMarkForEdit(index) : 0); + return static_cast<Bookmark *>(index < c.GetUserMarkCount() ? c.GetUserMarkForEdit(index) : nullptr); } size_t BookmarkCategory::FindBookmark(Bookmark const * bookmark) const |