summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qvariant.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-07-22 22:22:48 -0700
committerThiago Macieira <thiago.macieira@intel.com>2022-08-03 19:51:25 -0700
commitcfa955040c8543cb95fc5fe040c20b46af73c96b (patch)
tree52f6c4d02b643b556fe794f2405f91e7843096ac /src/corelib/kernel/qvariant.h
parent392e44539329017b04757e664400afaa7aacf7f5 (diff)
QVariant: pass the size and alignment to PrivateShared::create()
Instead of having that function load those from memory. This allows us to pass constant expressions in QVariant::Private s constructor Change-Id: I3859764fed084846bcb0fffd17045ddd62553710 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qvariant.h')
-rw-r--r--src/corelib/kernel/qvariant.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qvariant.h b/src/corelib/kernel/qvariant.h
index 3a59a37549..98193cfc4e 100644
--- a/src/corelib/kernel/qvariant.h
+++ b/src/corelib/kernel/qvariant.h
@@ -61,7 +61,7 @@ public:
private:
inline PrivateShared() : ref(1) { }
public:
- static PrivateShared *create(const QtPrivate::QMetaTypeInterface *type);
+ static PrivateShared *create(size_t size, size_t align);
static void free(PrivateShared *p);
alignas(8) QAtomicInt ref;