Skip to content

Commit

Permalink
Add const qualifiers to equality operators.
Browse files Browse the repository at this point in the history
  • Loading branch information
furby-tm committed Apr 4, 2024
1 parent 27a256d commit 5d909bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/UsdGeom/include/UsdGeom/hermiteCurves.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ class UsdGeomHermiteCurves : public UsdGeomCurves
/// Get separated tangents array
const VtVec3fArray& GetTangents() const { return _tangents; }

bool operator==(const PointAndTangentArrays& other) {
bool operator==(const PointAndTangentArrays& other) const {
return (GetPoints() == other.GetPoints()) &&
(GetTangents() == other.GetTangents());
}
bool operator!=(const PointAndTangentArrays& other) {
bool operator!=(const PointAndTangentArrays& other) const {
return !((*this) == other);
}
};
Expand Down

0 comments on commit 5d909bc

Please sign in to comment.