Compare commits

...
1 Commits
Author SHA1 Message Date
CodemodService Bot 80dda2377f Fix CQS signal modernize-use-designated-initializers in xplat/yoga/yoga/algorithm (#54197)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/54197

Reviewed By: christophpurrer

Differential Revision: D84892945
2025-10-21 14:35:29 -07:00
2 changed files with 9 additions and 9 deletions
@@ -336,13 +336,13 @@ static void measureNodeWithMeasureFunc(
Event::publish<Event::MeasureCallbackEnd>(
node,
{innerWidth,
unscopedEnum(measureMode(widthSizingMode)),
innerHeight,
unscopedEnum(measureMode(heightSizingMode)),
measuredSize.width,
measuredSize.height,
reason});
{.width = innerWidth,
.widthMeasureMode = unscopedEnum(measureMode(widthSizingMode)),
.height = innerHeight,
.heightMeasureMode = unscopedEnum(measureMode(heightSizingMode)),
.measuredWidth = measuredSize.width,
.measuredHeight = measuredSize.height,
.reason = reason});
node->setLayoutMeasuredDimension(
boundAxis(
@@ -116,8 +116,8 @@ FlexLine calculateFlexLine(
.sizeConsumed = sizeConsumed,
.numberOfAutoMargins = numberOfAutoMargins,
.layout = FlexLineRunningLayout{
totalFlexGrowFactors,
totalFlexShrinkScaledFactors,
.totalFlexGrowFactors = totalFlexGrowFactors,
.totalFlexShrinkScaledFactors = totalFlexShrinkScaledFactors,
}};
}