'base::optional_variant<' -> 'std::variant<v::null_t,'

This commit is contained in:
John Preston
2020-08-31 13:04:17 +04:00
parent 734d834a20
commit f0e1d2fd02
38 changed files with 189 additions and 169 deletions
@@ -161,13 +161,13 @@ rpl::producer<State> ControllerObject::state() const {
) | rpl::then(
_stateChanges.events()
) | rpl::filter([](const State &state) {
const auto password = base::get_if<PasswordCheckState>(&state);
const auto password = std::get_if<PasswordCheckState>(&state);
return !password || !password->requesting;
});
}
void ControllerObject::setState(State &&state) {
if (_state.is<CancelledState>()) {
if (v::is<CancelledState>(_state)) {
return;
}
_state = std::move(state);