vector instead of YGNodeList

Summary: Replaced YGNodeList with std::vector

Reviewed By: jonathandann, emilsjolander

Differential Revision: D6442379

fbshipit-source-id: d2d48ef0676351d2eeaa2d427dcd72e082cd15a1
This commit is contained in:
Pritesh Nandgaonkar
2017-12-05 08:16:49 -08:00
committed by Facebook Github Bot
parent 91683be798
commit 03dd1d23fa
8 changed files with 60 additions and 207 deletions

View File

@@ -235,7 +235,8 @@ TEST(YogaTest, cloning_and_freeing) {
const YGNodeRef root2 = YGNodeClone(root);
// Freeing the original root should be safe as long as we don't free its children.
// Freeing the original root should be safe as long as we don't free its
// children.
YGNodeFree(root);
YGNodeCalculateLayout(root2, YGUndefined, YGUndefined, YGDirectionLTR);