From b34f44f4eceac84b64307c5db6fdd903f5f75d66 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Fri, 14 Oct 2022 08:13:23 -0700 Subject: [PATCH] mess up the formatting --- yoga/Yoga.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/yoga/Yoga.cpp b/yoga/Yoga.cpp index ad2645c6..a0f7d3a7 100644 --- a/yoga/Yoga.cpp +++ b/yoga/Yoga.cpp @@ -21,7 +21,7 @@ #include /* define fmaxf if < VC12 */ -#if _MSC_VER < 1800 +#if _MSC_VER < 1800 __forceinline const float fmaxf(const float a, const float b) { return (a > b) ? a : b; } @@ -340,8 +340,8 @@ YOGA_EXPORT bool YGNodeIsReferenceBaseline(YGNodeRef node) { YOGA_EXPORT void YGNodeInsertChild( const YGNodeRef owner, - const YGNodeRef child, - const uint32_t index) { + const YGNodeRef child, + const uint32_t index) { YGAssertWithNode( owner, child->getOwner() == nullptr, @@ -361,9 +361,14 @@ YOGA_EXPORT void YGNodeSwapChild( const YGNodeRef owner, const YGNodeRef child, const uint32_t index) { + + + + + owner->replaceChild(child, index); child->setOwner(owner); -} + } YOGA_EXPORT void YGNodeRemoveChild( const YGNodeRef owner,