Commit 1a3e524d by Rémi Verschelde Committed by GitHub

Merge pull request #10666 from neikeq/methodinfo-opequal

MethodBind: Adds operator== to compare by id
parents 3ec9e26c b50a937f
......@@ -185,6 +185,7 @@ struct MethodInfo {
uint32_t flags;
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); }
operator Dictionary() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment