2
0
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:
John Preston
2017-11-30 22:04:13 +04:00
parent 2bbf17b672
commit 595af2c6d9
12 changed files with 49 additions and 39 deletions

View File

@@ -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());