| 156 | } |
| 157 | |
| 158 | void 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 | |
| 168 | void UserMarkIdStorage::SaveLastBookmarkId() |
| 169 | { |