Skip to content

Commit 595d96c

Browse files
CodemodService Botfacebook-github-bot
authored andcommitted
Fix CQS signal modernize-use-designated-initializers in xplat/yoga/yoga/algorithm [A] (#54251)
Summary: Pull Request resolved: #54251 Reviewed By: christophpurrer Differential Revision: D85212208
1 parent 3f971d9 commit 595d96c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/react-native/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -339,13 +339,13 @@ static void measureNodeWithMeasureFunc(
339339

340340
Event::publish<Event::MeasureCallbackEnd>(
341341
node,
342-
{innerWidth,
343-
unscopedEnum(measureMode(widthSizingMode)),
344-
innerHeight,
345-
unscopedEnum(measureMode(heightSizingMode)),
346-
measuredSize.width,
347-
measuredSize.height,
348-
reason});
342+
{.width = innerWidth,
343+
.widthMeasureMode = unscopedEnum(measureMode(widthSizingMode)),
344+
.height = innerHeight,
345+
.heightMeasureMode = unscopedEnum(measureMode(heightSizingMode)),
346+
.measuredWidth = measuredSize.width,
347+
.measuredHeight = measuredSize.height,
348+
.reason = reason});
349349

350350
node->setLayoutMeasuredDimension(
351351
boundAxis(

0 commit comments

Comments
 (0)