diff --git a/include/SFML/Graphics/Rect.hpp b/include/SFML/Graphics/Rect.hpp index c7be7cc4f2..fbcad4bd7e 100644 --- a/include/SFML/Graphics/Rect.hpp +++ b/include/SFML/Graphics/Rect.hpp @@ -125,14 +125,14 @@ class Rect /// /// This operator compares strict equality between two rectangles. /// -/// \param left Left operand (a rectangle) -/// \param right Right operand (a rectangle) +/// \param lhs Left operand (a rectangle) +/// \param rhs Right operand (a rectangle) /// -/// \return True if \a left is equal to \a right +/// \return True if \a lhs is equal to \a rhs /// //////////////////////////////////////////////////////////// template -[[nodiscard]] constexpr bool operator==(const Rect& left, const Rect& right); +[[nodiscard]] constexpr bool operator==(const Rect& lhs, const Rect& rhs); //////////////////////////////////////////////////////////// /// \relates Rect @@ -140,14 +140,14 @@ template /// /// This operator compares strict difference between two rectangles. /// -/// \param left Left operand (a rectangle) -/// \param right Right operand (a rectangle) +/// \param lhs Left operand (a rectangle) +/// \param rhs Right operand (a rectangle) /// -/// \return True if \a left is not equal to \a right +/// \return True if \a lhs is not equal to \a rhs /// //////////////////////////////////////////////////////////// template -[[nodiscard]] constexpr bool operator!=(const Rect& left, const Rect& right); +[[nodiscard]] constexpr bool operator!=(const Rect& lhs, const Rect& rhs); // Create type aliases for the most common types using IntRect = Rect; diff --git a/include/SFML/Graphics/Rect.inl b/include/SFML/Graphics/Rect.inl index c68a27f539..170a4fd763 100644 --- a/include/SFML/Graphics/Rect.inl +++ b/include/SFML/Graphics/Rect.inl @@ -120,17 +120,17 @@ constexpr Vector2 Rect::getCenter() const //////////////////////////////////////////////////////////// template -constexpr bool operator==(const Rect& left, const Rect& right) +constexpr bool operator==(const Rect& lhs, const Rect& rhs) { - return (left.position == right.position) && (left.size == right.size); + return (lhs.position == rhs.position) && (lhs.size == rhs.size); } //////////////////////////////////////////////////////////// template -constexpr bool operator!=(const Rect& left, const Rect& right) +constexpr bool operator!=(const Rect& lhs, const Rect& rhs) { - return !(left == right); + return !(lhs == rhs); } } // namespace sf