summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qvariant_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-07-08 16:14:21 +0200
committerLars Knoll <lars.knoll@qt.io>2020-08-24 00:17:04 +0200
commitbd64f9397ac6c7aa4368d92138929e858e3df107 (patch)
tree4b26719874cdc84f89dc83dec045ebf13f64301d /src/corelib/kernel/qvariant_p.h
parent49f2253be31266a26d1720888cd8d2577baf5df9 (diff)
Refactor Q*Iterable
Refactor the methods retrieving data in Q*Iterable so that we don't return pointers with unclear ownership. Instead, copy the data into a out pointer provided by the caller. This also means there is no need for the metatype flags anymore and we can remove those. Change-Id: I517de23a8ccfd608585ca00403aca0df2955f14b Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qvariant_p.h')
-rw-r--r--src/corelib/kernel/qvariant_p.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/kernel/qvariant_p.h b/src/corelib/kernel/qvariant_p.h
index 95bd91fe1d..0682d1d6b3 100644
--- a/src/corelib/kernel/qvariant_p.h
+++ b/src/corelib/kernel/qvariant_p.h
@@ -106,8 +106,7 @@ inline T *v_cast(QVariant::Private *d, T * = nullptr)
enum QVariantConstructionFlags : uint {
Default = 0x0,
- PointerType = 0x1,
- ShouldDeleteVariantData = 0x2 // only used in Q*Iterable
+ PointerType = 0x1
};
//a simple template that avoids to allocate 2 memory chunks when creating a QVariant