From 5e8731bd98ff7da035f5b9970ba5b8db9c59806e Mon Sep 17 00:00:00 2001
From: AlQuemist <alquemist@Lyriks>
Date: Fri, 20 Sep 2024 14:28:39 +0200
Subject: [PATCH] Use negation of '==' instead of '!='

---
 Base/Axis/Frame.cpp                   | 2 +-
 Tests/Unit/Base/PointwiseAxisTest.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Base/Axis/Frame.cpp b/Base/Axis/Frame.cpp
index 9b226387c57..c3c7b06707f 100644
--- a/Base/Axis/Frame.cpp
+++ b/Base/Axis/Frame.cpp
@@ -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;
 }
diff --git a/Tests/Unit/Base/PointwiseAxisTest.cpp b/Tests/Unit/Base/PointwiseAxisTest.cpp
index d30f442e2a0..025b63a488f 100644
--- a/Tests/Unit/Base/PointwiseAxisTest.cpp
+++ b/Tests/Unit/Base/PointwiseAxisTest.cpp
@@ -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);
-- 
GitLab