summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qvariant.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-07-27 17:34:10 +0200
committerLars Knoll <lars.knoll@qt.io>2020-08-24 00:19:30 +0200
commit700e6341e51f5e6f45303fab3d0a84a3eb249eba (patch)
tree0d2d876937b99e3de9d92582dff5ba56ced9f8c4 /src/corelib/kernel/qvariant.h
parent369cb1470d06b01934e616757ad98db2bb9ebb20 (diff)
Pass QMetaType by value
Now that QMetaType is not refcounted anymore, we can and should pass it by value. Change-Id: I848db65070713762f548ca949097c27783aacad4 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
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 e9509e637a..ae4c26ed7a 100644
--- a/src/corelib/kernel/qvariant.h
+++ b/src/corelib/kernel/qvariant.h
@@ -443,7 +443,7 @@ class Q_CORE_EXPORT QVariant
quintptr packedType : sizeof(QMetaType) * 8 - 2;
Private() noexcept : is_shared(false), is_null(true), packedType(0) {}
- explicit Private(const QMetaType &type) noexcept : is_shared(false), is_null(false)
+ explicit Private(QMetaType type) noexcept : is_shared(false), is_null(false)
{
quintptr mt = quintptr(type.d_ptr);
Q_ASSERT((mt & 0x3) == 0);