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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user