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

Method SetBookmarksAddresses

libs/map/bookmark_manager.cpp:1236–1246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1234}
1235
1236void BookmarkManager::SetBookmarksAddresses(AddressesCollection const & addresses)
1237{
1238 CHECK_THREAD_CHECKER(m_threadChecker, ());
1239 auto session = GetEditSession();
1240 for (auto const & item : addresses)
1241 {
1242 // Use inner method GetBookmarkForEdit to save address even if the bookmarks is not editable.
1243 auto bm = GetBookmarkForEdit(item.first);
1244 bm->SetAddress(item.second);
1245 }
1246}
1247
1248// static
1249void BookmarkManager::AddTracksSortedBlock(std::vector<SortTrackData> const & sortedTracks,

Callers

nothing calls this directly

Calls 1

SetAddressMethod · 0.45

Tested by

no test coverage detected