| 2666 | } |
| 2667 | |
| 2668 | void BookmarkManager::UpdateBookmarkCategory(kml::MarkGroupId & groupId, kml::CategoryData && data, |
| 2669 | bool autoSave /* = true */) |
| 2670 | { |
| 2671 | CHECK_THREAD_CHECKER(m_threadChecker, ()); |
| 2672 | CHECK_NOT_EQUAL(m_categories.count(groupId), 0, ()); |
| 2673 | // The current implementation reloads the provided group. |
| 2674 | /// @todo implement more accurate merging instead of full reloading |
| 2675 | ClearGroup(groupId); |
| 2676 | m_categories.emplace(groupId, std::make_unique<BookmarkCategory>(std::move(data), autoSave)); |
| 2677 | m_changesTracker.OnAddGroup(groupId); |
| 2678 | } |
| 2679 | |
| 2680 | BookmarkCategory * BookmarkManager::CreateBookmarkCompilation(kml::CategoryData && data) |
| 2681 | { |
nothing calls this directly
no test coverage detected