| 163 | } |
| 164 | |
| 165 | void Processor::AttachToGroup(Id const & id, GroupId const & group) |
| 166 | { |
| 167 | auto const it = m_idToGroup.find(id); |
| 168 | if (it != m_idToGroup.end()) |
| 169 | LOG(LWARNING, ("Tried to attach bookmark", id, "to group", group, "but it already belongs to group", it->second)); |
| 170 | |
| 171 | m_idToGroup[id] = group; |
| 172 | m_bookmarksInGroup[group].insert(id); |
| 173 | if (m_indexableGroups.count(group) > 0) |
| 174 | AddToIndex(id); |
| 175 | } |
| 176 | |
| 177 | void Processor::DetachFromGroup(Id const & id, GroupId const & group) |
| 178 | { |
no test coverage detected