Skip to content

Commit

Permalink
renamed lsh/rhs to left/right
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 5, 2022
1 parent 9e8c0ba commit 07c76a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions include/orm/tiny/tinytypes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ namespace Relations
};

/*! Comparison operator for the AttributeItem. */
SHAREDLIB_EXPORT bool operator==(const AttributeItem &lhs, const AttributeItem &rhs);
SHAREDLIB_EXPORT bool
operator==(const AttributeItem &left, const AttributeItem &right);

/*! Eager load relation item. */
struct WithItem
Expand All @@ -61,7 +62,7 @@ namespace Relations

/*! Comparison operator for the WithItem. */
[[maybe_unused]]
SHAREDLIB_EXPORT bool operator==(const WithItem &lhs, const WithItem &rhs);
SHAREDLIB_EXPORT bool operator==(const WithItem &left, const WithItem &right);

/*! Tag for Model::getRelation() family methods to return Related type
directly ( not container type ). */
Expand Down
8 changes: 4 additions & 4 deletions src/orm/tiny/tinytypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ AttributeItem::operator UpdateItem() const
return {key, value};
}

bool operator==(const AttributeItem &lhs, const AttributeItem &rhs)
bool operator==(const AttributeItem &left, const AttributeItem &right)
{
return lhs.key == rhs.key && lhs.value == rhs.value;
return left.key == right.key && left.value == right.value;
}

bool operator==(const WithItem &lhs, const WithItem &rhs)
bool operator==(const WithItem &left, const WithItem &right)
{
return lhs.name == rhs.name;
return left.name == right.name;
}

} // namespace Orm::Tiny
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -927,9 +927,9 @@ namespace
QString name;

/*! Comparison operator for the IdAndName. */
inline bool operator==(const IdAndName &other) const noexcept
inline bool operator==(const IdAndName &right) const noexcept
{
return id == other.id && name == other.name;
return id == right.id && name == right.name;
}
};
} // namespace
Expand Down

0 comments on commit 07c76a9

Please sign in to comment.