summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2019-12-10 14:55:14 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2019-12-11 20:12:23 +0100
commitc15d6a155c6121bad68a3ec60be62181fb92d0f8 (patch)
tree458e2a44d19ba6ecf1c5493dc64d9504a6f4bc71 /src/widgets/doc
parent07838840e86a5fb7f81520bb2a31d16f80e51e4c (diff)
QVariant: introduce ShouldDeleteVariantData flag
This flag is used in QSequentialIterable and QAssociativeIterable to indicate that the data pointer in VariantData should be deleted after the variant has been constructed. The use case for this is https://codereview.qt-project.org/c/qt/qtdeclarative/+/284151, where we have a proxy iterator and cannot easily return a pointer to already owned data, as it is hard to manage its lifetime in the iterator. In contrast, it is clear that we can release the memory in the QSequentialIterable functions, as it has already been copied into the QVariant there. Change-Id: I2b33497d991cd4f752153e0ebda767b82e4bb851 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets/doc')
0 files changed, 0 insertions, 0 deletions