Skip to content

Commit

Permalink
Add missing const for operator==.
Browse files Browse the repository at this point in the history
  • Loading branch information
FranckRJ committed Aug 27, 2023
1 parent 4f1e2fe commit 7b0c028
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/move_only_return_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct MoveOnlyReturnTests: tpunit::TestFixture {
void foo() override {
}

bool operator==(const ConcreteType& other) {
bool operator==(const ConcreteType& other) const {
return (other.state == this->state);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/referece_types_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct ReferenceTypesTests: tpunit::TestFixture {
void foo() override {
}

bool operator==(const ConcreteType& other) {
bool operator==(const ConcreteType& other) const {
return (other.state == this->state);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/rvalue_arguments_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct RValueTypesTests : tpunit::TestFixture {
void foo() override {
}

bool operator==(const ConcreteType& other) {
bool operator==(const ConcreteType& other) const {
return (other.state == this->state);
}
};
Expand Down

0 comments on commit 7b0c028

Please sign in to comment.