Преглед изворни кода

MethodBind: Adds operator== to compare by id

Ignacio Etcheverry пре 8 година
родитељ
комит
b50a937fe6
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      core/object.h

+ 1 - 0
core/object.h

@@ -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;