summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestcrashhandler_unix.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2025-04-08 15:48:30 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2025-05-24 05:35:22 +0200
commit1c98b3fe403aaa7b57813070f3bd690af7bd4e43 (patch)
treea29d9dc5b850b2edb721570cbdc32eb9b0e800b0 /src/testlib/qtestcrashhandler_unix.cpp
parente7b3a094a0b863f06328adfc0db78d60352ac1cb (diff)
Use __weak for implementation of QObjCWeakPointer
By moving the implementation to qcore_mac.mm, and using a union for the object pointer, we can build qcore_mac.mm with -fobjc-weak to take advantage of the automatic weak-tracking. This allows us to drop the manual handling via ObjC associated objects, while also allowing non-Objective-C code to use QObjCWeakPointer. In particular we want to use it for QMacKeyValueObserver, which today runs the risk of removing the observation on an object that is long gone. Pick-to: 6.9 Change-Id: I5d605e5ac82b39223b246d6758d0da88a1702357 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/testlib/qtestcrashhandler_unix.cpp')
0 files changed, 0 insertions, 0 deletions