summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qmetatype.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/kernel/qmetatype.h')
-rw-r--r--src/corelib/kernel/qmetatype.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/kernel/qmetatype.h b/src/corelib/kernel/qmetatype.h
index b72b2f69be..bf76f39a2a 100644
--- a/src/corelib/kernel/qmetatype.h
+++ b/src/corelib/kernel/qmetatype.h
@@ -438,8 +438,8 @@ public:
static QMetaType fromType();
static QMetaType fromName(QByteArrayView name);
- friend bool operator==(const QMetaType &a, const QMetaType &b) { return a.id() == b.id(); }
- friend bool operator!=(const QMetaType &a, const QMetaType &b) { return !(a == b); }
+ friend bool operator==(QMetaType a, QMetaType b) { return a.id() == b.id(); }
+ friend bool operator!=(QMetaType a, QMetaType b) { return !(a == b); }
public:
@@ -538,7 +538,7 @@ public:
#endif
static bool convert(QMetaType fromType, const void *from, QMetaType toType, void *to);
- static bool canConvert(const QMetaType &fromType, const QMetaType &toType);
+ static bool canConvert(QMetaType fromType, QMetaType toType);
#if QT_DEPRECATED_SINCE(6, 0)
QT_DEPRECATED_VERSION_6_0
static bool convert(const void *from, int fromTypeId, void *to, int toTypeId)