diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-27 02:08:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-27 02:08:38 +0200 |
commit | 1a3e524d5b3ee8dffe8bcfe5a7d4bb30b15b2958 (patch) | |
tree | 9f34b32d12973cf84b59730384b8e0116017d0f1 | |
parent | 3ec9e26cb4a5a94bd8770f51c99f2a9e11df9b7f (diff) | |
parent | b50a937fe68c8f44fa835ecb6e0c89c4282fd20e (diff) |
Merge pull request #10666 from neikeq/methodinfo-opequal
MethodBind: Adds operator== to compare by id
-rw-r--r-- | core/object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/object.h b/core/object.h index 9eb6cd1d56..746450ef6a 100644 --- a/core/object.h +++ b/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; |