diff --git a/yoga/Yoga.cpp b/yoga/Yoga.cpp index e87fa32516..7f04b8a411 100644 --- a/yoga/Yoga.cpp +++ b/yoga/Yoga.cpp @@ -1853,7 +1853,7 @@ static float YGNodeComputeFlexBasisForChildren( const uint32_t generationCount) { float totalOuterFlexBasis = 0.0f; YGNodeRef singleFlexChild = nullptr; - YGVector children = node->getChildren(); + const YGVector &children = node->getChildren(); YGMeasureMode measureModeMainDim = YGFlexDirectionIsRow(mainAxis) ? widthMeasureMode : heightMeasureMode; // If there is only one child with flexGrow + flexShrink it means we can set