2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Move to std::optional.

This commit is contained in:
John Preston
2018-09-21 19:28:46 +03:00
parent 850efbde95
commit 2e5a0e056c
115 changed files with 632 additions and 672 deletions

View File

@@ -969,8 +969,8 @@ void Messenger::unlockTerms() {
}
}
base::optional<Window::TermsLock> Messenger::termsLocked() const {
return _termsLock ? base::make_optional(*_termsLock) : base::none;
std::optional<Window::TermsLock> Messenger::termsLocked() const {
return _termsLock ? base::make_optional(*_termsLock) : std::nullopt;
}
rpl::producer<bool> Messenger::termsLockChanges() const {