mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Replace base::lambda with shorter term.
base::lambda -> Fn (type alias for std::function). base::lambda_once -> FnMut (type alias for base::unique_function). base::lambda_guarded -> crl::guard. base::lambda_call_type_t -> crl::deduced_call_type.
This commit is contained in:
@@ -1078,13 +1078,13 @@ void DialogsWidget::showSearchFrom() {
|
||||
Dialogs::ShowSearchFromBox(
|
||||
controller(),
|
||||
peer,
|
||||
base::lambda_guarded(this, [=](
|
||||
crl::guard(this, [=](
|
||||
not_null<UserData*> user) {
|
||||
Ui::hideLayer();
|
||||
setSearchInChat(chat, user);
|
||||
onFilterUpdate(true);
|
||||
}),
|
||||
base::lambda_guarded(this, [this] { _filter->setFocus(); }));
|
||||
crl::guard(this, [this] { _filter->setFocus(); }));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user