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

Method LoadLastCategoryId

libs/map/user_mark_id_storage.cpp:158–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void UserMarkIdStorage::LoadLastCategoryId()
159{
160 uint64_t lastId;
161 std::string val;
162 if (GetPlatform().GetSecureStorage().Load(kLastBookmarkCategoryId, val) && strings::to_uint64(val, lastId))
163 m_lastCategoryId = std::max(static_cast<uint64_t>(UserMark::USER_MARK_TYPES_COUNT_MAX), lastId);
164 else
165 m_lastCategoryId = static_cast<uint64_t>(UserMark::USER_MARK_TYPES_COUNT_MAX);
166}
167
168void UserMarkIdStorage::SaveLastBookmarkId()
169{

Callers

nothing calls this directly

Calls 2

to_uint64Function · 0.85
LoadMethod · 0.45

Tested by

no test coverage detected