From a7524c27cc902e9d31c558f1a8a3c68004985d4b Mon Sep 17 00:00:00 2001 From: Mike Grabowski Date: Fri, 26 Jan 2018 11:57:40 +0100 Subject: [PATCH] Fix Yoga cherry-pick issues --- ReactCommon/yoga/yoga/YGNodePrint.cpp | 2 +- ReactCommon/yoga/yoga/Yoga.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ReactCommon/yoga/yoga/YGNodePrint.cpp b/ReactCommon/yoga/yoga/YGNodePrint.cpp index bde184dc3f1..9a01a76c38b 100644 --- a/ReactCommon/yoga/yoga/YGNodePrint.cpp +++ b/ReactCommon/yoga/yoga/YGNodePrint.cpp @@ -205,7 +205,7 @@ void YGNodeToString( } appendFormatedString(str, ">"); - const uint32_t childCount = static_cast(node->getChildren().size()); + const uint32_t childCount = static_cast(node->children.size()); if (options & YGPrintOptionsChildren && childCount > 0) { for (uint32_t i = 0; i < childCount; i++) { appendFormatedString(str, "\n"); diff --git a/ReactCommon/yoga/yoga/Yoga.cpp b/ReactCommon/yoga/yoga/Yoga.cpp index 757549b5efc..9520e9329c7 100644 --- a/ReactCommon/yoga/yoga/Yoga.cpp +++ b/ReactCommon/yoga/yoga/Yoga.cpp @@ -471,7 +471,7 @@ YGNodeRef YGNodeGetParent(const YGNodeRef node) { } uint32_t YGNodeGetChildCount(const YGNodeRef node) { - return static_cast(node->getChildren().size()); + return static_cast(node->children.size()); } void YGNodeMarkDirty(const YGNodeRef node) {