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.
This commit is contained in:
Hans Goudey 2021-03-21 20:21:05 -04:00
parent 54bbaa26de
commit 2a06657eca
1 changed files with 3 additions and 3 deletions

View File

@ -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_);
}
};