Merge pull request #86259 from TitanNano/jovan/fix_MethodInfo_eq

Include `name` field in MethodInfo operator ==
This commit is contained in:
Rémi Verschelde 2024-01-02 15:09:02 +01:00
commit 35d1ffb8de
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -235,7 +235,7 @@ struct MethodInfo {
return arguments_metadata.size() > p_arg ? arguments_metadata[p_arg] : 0;
}
inline bool operator==(const MethodInfo &p_method) const { return id == p_method.id; }
inline bool operator==(const MethodInfo &p_method) const { return id == p_method.id && name == p_method.name; }
inline bool operator<(const MethodInfo &p_method) const { return id == p_method.id ? (name < p_method.name) : (id < p_method.id); }
operator Dictionary() const;