Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-09-23 18:22:17 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-09-23 18:58:20 +0300
commit105115da9f601c53d87cdc038f795f00f56a3495 (patch)
treec0b8c200f485ed604c58c88f21b4fdfb1d723482 /source/blender/blenlib/intern/uuid.cc
parentbd63944a739b4dcd49e8a65294ffb1b8a0a7b20b (diff)
UUID: add `!=` operator for comparing UUIDs
Make it possible to unit test with `EXPECT_NE(uuid1, uuid2)`.
Diffstat (limited to 'source/blender/blenlib/intern/uuid.cc')
-rw-r--r--source/blender/blenlib/intern/uuid.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/uuid.cc b/source/blender/blenlib/intern/uuid.cc
index cdb430c046a..bc8f67f939c 100644
--- a/source/blender/blenlib/intern/uuid.cc
+++ b/source/blender/blenlib/intern/uuid.cc
@@ -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