Skip to content

Commit bbbc2a9

Browse files
CodemodService Botfacebook-github-bot
authored andcommitted
Fix CQS signal modernize-use-designated-initializers in xplat/yoga/yoga/algorithm [A]
Reviewed By: christophpurrer Differential Revision: D85212208
1 parent d93d325 commit bbbc2a9

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
@@ -336,13 +336,13 @@ static void measureNodeWithMeasureFunc(
336336

337337
Event::publish<Event::MeasureCallbackEnd>(
338338
node,
339-
{innerWidth,
340-
unscopedEnum(measureMode(widthSizingMode)),
341-
innerHeight,
342-
unscopedEnum(measureMode(heightSizingMode)),
343-
measuredSize.width,
344-
measuredSize.height,
345-
reason});
339+
{.width = innerWidth,
340+
.widthMeasureMode = unscopedEnum(measureMode(widthSizingMode)),
341+
.height = innerHeight,
342+
.heightMeasureMode = unscopedEnum(measureMode(heightSizingMode)),
343+
.measuredWidth = measuredSize.width,
344+
.measuredHeight = measuredSize.height,
345+
.reason = reason});
346346

347347
node->setLayoutMeasuredDimension(
348348
boundAxis(

0 commit comments

Comments
 (0)