Skip to content

Commit 4109f4a

Browse files
committed
fix(Identifier): set default name as uuid
1 parent dfcb522 commit 4109f4a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/geode/basic/identifier.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ namespace geode
3434
class Identifier::Impl
3535
{
3636
public:
37-
Impl() = default;
37+
Impl()
38+
{
39+
if( name_ == DEFAULT_NAME )
40+
{
41+
name_ = id_.string();
42+
}
43+
}
3844

3945
const uuid& id() const
4046
{

0 commit comments

Comments
 (0)