mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Use base::weak_qptr / base::make_weak.
This commit is contained in:
@@ -57,7 +57,7 @@ void ConfirmDontWarnBox(
|
||||
std::move(check),
|
||||
false,
|
||||
st::defaultBoxCheckbox);
|
||||
const auto weak = Ui::MakeWeak(checkbox.data());
|
||||
const auto weak = base::make_weak(checkbox.data());
|
||||
auto confirmed = crl::guard(weak, [=, callback = std::move(callback)] {
|
||||
const auto checked = weak->checked();
|
||||
box->closeBox();
|
||||
|
||||
Reference in New Issue
Block a user