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 19:27:15 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-09-23 19:27:19 +0300
commit0a8a726014fb4135414eedbe98170790fe09c2c2 (patch)
treeae380a7e9ef4c36c2d7e218b872680f678a7d8f1 /source/blender/blenlib/BLI_uuid.h
parent18a4dc869d16fca315df32a790843a0068c72a47 (diff)
bUUID: make it explicit the default constructor produces the nil value
The implicit default constructor zeroes all plain data fields, and now this behaviour is explicit & tested for in a unit test.
Diffstat (limited to 'source/blender/blenlib/BLI_uuid.h')
-rw-r--r--source/blender/blenlib/BLI_uuid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_uuid.h b/source/blender/blenlib/BLI_uuid.h
index eef37841d15..7ac676b7617 100644
--- a/source/blender/blenlib/BLI_uuid.h
+++ b/source/blender/blenlib/BLI_uuid.h
@@ -78,6 +78,9 @@ namespace blender {
class bUUID : public ::bUUID {
public:
+ /**
+ * Default constructor, used with `bUUID value{};`, will initialise to the nil UUID.
+ */
bUUID() = default;
/** Initialise from the bUUID DNA struct. */