2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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

@@ -286,9 +286,9 @@ void PhotoCropBox::sendPhoto() {
tosend = cropped.copy();
}
auto guard = weak(this);
auto weak = make_weak(this);
_readyImages.fire(std::move(tosend));
if (guard) {
if (weak) {
closeBox();
}
}