mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Rename weak(QObject*) to make_weak(QObject*).
This commit is contained in:
@@ -838,9 +838,9 @@ object_ptr<Ui::RpWidget> WrapWidget::createTopBarSurrogate(
|
||||
Assert(_topBar != nullptr);
|
||||
|
||||
auto result = object_ptr<Ui::AbstractButton>(parent);
|
||||
result->addClickHandler([wrap = weak(this)]{
|
||||
if (wrap) {
|
||||
wrap->showBackFromStack();
|
||||
result->addClickHandler([weak = make_weak(this)]{
|
||||
if (weak) {
|
||||
weak->showBackFromStack();
|
||||
}
|
||||
});
|
||||
result->setGeometry(_topBar->geometry());
|
||||
|
Reference in New Issue
Block a user