mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[poincare] TreeHandle: Improve BuildWithBasicChildren
When building ghost nodes to stand as temporary children, we do not need to move them are they are built sequentially after the built node.
This commit is contained in:
committed by
LeaNumworks
parent
fad3ad958d
commit
3adbca88d8
@@ -195,7 +195,7 @@ TreeHandle TreeHandle::BuildWithBasicChildren(TreeNode * node, TreeHandle * chil
|
||||
GhostNode * ghost = new (pool->alloc(sizeof(GhostNode))) GhostNode();
|
||||
ghost->rename(pool->generateIdentifier(), false);
|
||||
ghost->retain();
|
||||
pool->move(node->next(), ghost, 0);
|
||||
assert((char *)ghost == (char *)node->next() + i*sizeof(GhostNode));
|
||||
}
|
||||
node->rename(pool->generateIdentifier(), false);
|
||||
TreeHandle h = TreeHandle(node);
|
||||
|
||||
Reference in New Issue
Block a user