Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-03-22 03:21:05 +0300
committerHans Goudey <h.goudey@me.com>2021-03-22 03:21:05 +0300
commit2a06657eca5a9b217384062daf55343bf08f86ec (patch)
treecceada739394142a0ad767f15e0aeea8a8c43607 /source
parent54bbaa26de5e4e24c8f8c25015b701797ee5c59f (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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/BKE_node_ui_storage.hh6
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_);
}
};