| 364 | } |
| 365 | |
| 366 | Bookmark * BookmarkManager::GetBookmarkForEdit(kml::MarkId markId) |
| 367 | { |
| 368 | CHECK_THREAD_CHECKER(m_threadChecker, ()); |
| 369 | auto it = m_bookmarks.find(markId); |
| 370 | if (it == m_bookmarks.end()) |
| 371 | return nullptr; |
| 372 | |
| 373 | auto const groupId = it->second->GetGroupId(); |
| 374 | if (groupId != kml::kInvalidMarkGroupId) |
| 375 | m_changesTracker.OnUpdateMark(markId); |
| 376 | |
| 377 | return it->second.get(); |
| 378 | } |
| 379 | |
| 380 | void BookmarkManager::AttachBookmark(kml::MarkId bmId, kml::MarkGroupId catId) |
| 381 | { |