MCPcopy Create free account
hub / github.com/comaps/comaps / UpdateBookmarkCategory

Method UpdateBookmarkCategory

libs/map/bookmark_manager.cpp:2668–2678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2666}
2667
2668void 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
2680BookmarkCategory * BookmarkManager::CreateBookmarkCompilation(kml::CategoryData && data)
2681{

Callers

nothing calls this directly

Calls 3

OnAddGroupMethod · 0.80
countMethod · 0.45
emplaceMethod · 0.45

Tested by

no test coverage detected