diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-08-07 04:21:49 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-08-07 04:21:49 (GMT) |
commit | 01f6bb95151f1852020aa7b149f33c49c1229a39 (patch) | |
tree | 5b425bff4343524eb0f0180aa04aa72a95af0f7b /src/corelib/kernel/qvariant.h | |
parent | 281d3dc3cfff77c185912365130af36f8be632d3 (diff) | |
download | Qt-01f6bb95151f1852020aa7b149f33c49c1229a39.zip Qt-01f6bb95151f1852020aa7b149f33c49c1229a39.tar.gz Qt-01f6bb95151f1852020aa7b149f33c49c1229a39.tar.bz2 |
Store QObject*'s in the QVariant data structure
Rather than requiring an allocation of the "shared data" region,
QObject *'s should be stored directly in the data structure. This very
marginally, but measurably, improves QVariant performance.
Reviewed-by: Thiago Macieira
Diffstat (limited to 'src/corelib/kernel/qvariant.h')
-rw-r--r-- | src/corelib/kernel/qvariant.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/kernel/qvariant.h b/src/corelib/kernel/qvariant.h index a68939d..4489e95 100644 --- a/src/corelib/kernel/qvariant.h +++ b/src/corelib/kernel/qvariant.h @@ -358,6 +358,7 @@ class Q_CORE_EXPORT QVariant float f; qlonglong ll; qulonglong ull; + QObject *o; void *ptr; PrivateShared *shared; } data; |