aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-05-23 13:43:04 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2021-06-07 12:15:52 +0200
commit02a5ee8a1539f486f5641e4282cc141ee11c66fb (patch)
tree423d71d73247f8321e8ac69706e2179dd29f0cd9 /src
parentf38778445d5ccd4bd0b5555ab327036c521cb553 (diff)
Don't allocate QStringList to compare first element
Change-Id: Ib5ea29581e4b15d071a395e10b0705d57495d387 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/qml/qml/qqmlpropertycache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlpropertycache.cpp b/src/qml/qml/qqmlpropertycache.cpp
index d016e9fe29..269f02afbd 100644
--- a/src/qml/qml/qqmlpropertycache.cpp
+++ b/src/qml/qml/qqmlpropertycache.cpp
@@ -137,7 +137,7 @@ void QQmlPropertyData::load(const QMetaMethod &m)
const int paramCount = m.parameterCount();
if (paramCount) {
m_flags.setHasArguments(true);
- if ((paramCount == 1) && (m.parameterTypes().constFirst() == "QQmlV4Function*"))
+ if ((paramCount == 1) && (m.parameterMetaType(0) == QMetaType::fromType<QQmlV4Function *>()))
m_flags.setIsV4Function(true);
}