Use base::weak_qptr / base::make_weak.

This commit is contained in:
John Preston
2025-07-18 10:07:39 +04:00
parent 321c7120df
commit b754ad5248
189 changed files with 556 additions and 555 deletions
+1 -1
View File
@@ -1096,7 +1096,7 @@ void Controller::showMenu() {
}
_menu->setDestroyedCallback(crl::guard(_window.get(), [
this,
weakButton = Ui::MakeWeak(_menuToggle.data()),
weakButton = base::make_weak(_menuToggle.data()),
menu = _menu.get()] {
if (_menu == menu && weakButton) {
weakButton->setForceRippled(false);