MethodBind: Adds operator== to compare by id

This commit is contained in:
Ignacio Etcheverry 2017-08-26 21:41:25 +02:00
parent 53c0010932
commit b50a937fe6

View file

@ -185,6 +185,7 @@ struct MethodInfo {
uint32_t flags; uint32_t flags;
int id; int id;
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) : (id < p_method.id); } inline bool operator<(const MethodInfo &p_method) const { return id == p_method.id ? (name < p_method.name) : (id < p_method.id); }
operator Dictionary() const; operator Dictionary() const;