diff options
| author | Maximilian Goldstein <max.goldstein@qt.io> | 2021-04-14 15:18:48 +0200 |
|---|---|---|
| committer | Maximilian Goldstein <max.goldstein@qt.io> | 2021-04-14 17:46:06 +0200 |
| commit | 07326cbb19bc28b5ea83ff75f482375ed98fbd82 (patch) | |
| tree | e337fb1348208acf10d75539b387bdef1cf270ef | |
| parent | 02e80624615da8032fd5bff88ae871cd72712313 (diff) | |
qqmljsmetatypes: Use all members in operator== / qHash
Change-Id: Iddcb4ce6859fb433f57e6449630dae39dd8e85f4
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
| -rw-r--r-- | src/qmlcompiler/qqmljsmetatypes_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qmlcompiler/qqmljsmetatypes_p.h b/src/qmlcompiler/qqmljsmetatypes_p.h index 6949a042d5..3130ab6903 100644 --- a/src/qmlcompiler/qqmljsmetatypes_p.h +++ b/src/qmlcompiler/qqmljsmetatypes_p.h @@ -197,7 +197,8 @@ public: && a.m_paramTypes == b.m_paramTypes && a.m_methodType == b.m_methodType && a.m_methodAccess == b.m_methodAccess - && a.m_revision == b.m_revision; + && a.m_revision == b.m_revision + && a.m_isConstructor == b.m_isConstructor; } friend bool operator!=(const QQmlJSMetaMethod &a, const QQmlJSMetaMethod &b) @@ -213,9 +214,11 @@ public: seed = combine(seed, method.m_returnTypeName); seed = combine(seed, method.m_returnType.toStrongRef().data()); seed = combine(seed, method.m_paramNames); + seed = combine(seed, method.m_paramTypeNames); seed = combine(seed, method.m_methodType); seed = combine(seed, method.m_methodAccess); seed = combine(seed, method.m_revision); + seed = combine(seed, method.m_isConstructor); for (const auto &type : method.m_paramTypes) seed = combine(seed, type.toStrongRef().data()); |
