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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user