2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +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

@@ -39,9 +39,9 @@ void SectionWidget::setGeometryWithTopMoved(
_topDelta = topDelta;
bool willBeResized = (size() != newGeometry.size());
if (geometry() != newGeometry) {
auto that = weak(this);
auto weak = make_weak(this);
setGeometry(newGeometry);
if (!that) {
if (!weak) {
return;
}
}