diff options
author | Hans Goudey <h.goudey@me.com> | 2021-03-22 03:21:05 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-03-22 03:21:05 +0300 |
commit | 2a06657eca5a9b217384062daf55343bf08f86ec (patch) | |
tree | cceada739394142a0ad767f15e0aeea8a8c43607 | |
parent | 54bbaa26de5e4e24c8f8c25015b701797ee5c59f (diff) |
Cleanup: Don't use class method to override equality operator
This won't make a difference in this case, but it's consider better
practice since there is no vagueness about implicit conversion.
-rw-r--r-- | source/blender/blenkernel/BKE_node_ui_storage.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/BKE_node_ui_storage.hh b/source/blender/blenkernel/BKE_node_ui_storage.hh index be9510179c3..a8fdbec1e8c 100644 --- a/source/blender/blenkernel/BKE_node_ui_storage.hh +++ b/source/blender/blenkernel/BKE_node_ui_storage.hh @@ -63,10 +63,10 @@ class NodeTreeEvaluationContext { return hash1 ^ (hash2 * 33); /* Copied from DefaultHash for std::pair. */ } - bool operator==(const NodeTreeEvaluationContext &other) const + friend bool operator==(const NodeTreeEvaluationContext &a, const NodeTreeEvaluationContext &b) { - return other.object_name_ == object_name_ && - BLI_session_uuid_is_equal(&other.modifier_session_uuid_, &modifier_session_uuid_); + return a.object_name_ == b.object_name_ && + BLI_session_uuid_is_equal(&a.modifier_session_uuid_, &b.modifier_session_uuid_); } }; |