| 4501 | } |
| 4502 | |
| 4503 | not_null<PollData*> Session::poll(PollId id) { |
| 4504 | auto i = _polls.find(id); |
| 4505 | if (i == _polls.cend()) { |
| 4506 | i = _polls.emplace(id, std::make_unique<PollData>(this, id)).first; |
| 4507 | } |
| 4508 | return i->second.get(); |
| 4509 | } |
| 4510 | |
| 4511 | HistoryItem *Session::findItemForPoll(PollId id) const { |
| 4512 | const auto i = _polls.find(id); |
no test coverage detected