From bd64f9397ac6c7aa4368d92138929e858e3df107 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 8 Jul 2020 16:14:21 +0200 Subject: 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 --- src/corelib/kernel/qvariant_p.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/corelib/kernel/qvariant_p.h') 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 -- cgit v1.2.3