| 405 | } |
| 406 | |
| 407 | void PollData::setVoteRestriction(VoteRestriction restriction) { |
| 408 | _voteRestrictionUpdated = (restriction == VoteRestriction::None) |
| 409 | ? 0 |
| 410 | : crl::now(); |
| 411 | if (_voteRestriction != restriction) { |
| 412 | _voteRestriction = restriction; |
| 413 | ++version; |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | PollData::VoteRestriction PollData::voteRestriction() const { |
| 418 | return _voteRestriction; |