UUID: add != operator for comparing UUIDs

Make it possible to unit test with `EXPECT_NE(uuid1, uuid2)`.
This commit is contained in:
2021-09-23 17:22:17 +02:00
parent bd63944a73
commit 105115da9f
3 changed files with 10 additions and 4 deletions

View File

@@ -184,4 +184,9 @@ bool operator==(const bUUID uuid1, const bUUID uuid2)
return BLI_uuid_equal(uuid1, uuid2);
}
bool operator!=(const bUUID uuid1, const bUUID uuid2)
{
return !(uuid1 == uuid2);
}
} // namespace blender