Skip to content
Snippets Groups Projects
Commit 5e8731bd authored by AlQuemist's avatar AlQuemist
Browse files

Use negation of '==' instead of '!='

parent f7e93579
No related branches found
No related tags found
1 merge request!2727Avoid using C++20 features to keep the libraries maintainable on older systems
......@@ -118,7 +118,7 @@ bool Frame::operator==(const Frame& o) const
if (rank() != o.rank())
return false;
for (size_t k = 0; k < rank(); ++k)
if (axis(k) != o.axis(k))
if (!(axis(k) == o.axis(k)))
return false;
return true;
}
......
......@@ -89,7 +89,7 @@ TEST(PointwiseAxis, ClippedAxis)
EXPECT_TRUE(clip2 == axis);
Scale clip3 = axis.clipped(1.5, 2.5);
EXPECT_TRUE(clip3 != axis);
EXPECT_TRUE(!(clip3 == axis));
EXPECT_EQ(clip3.size(), 2u);
EXPECT_EQ(clip3.binCenter(0), 2.0);
EXPECT_EQ(clip3.binCenter(1), 2.5);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment