Skip to content

Commit 985ad38

Browse files
generatedunixname1587093422349604meta-codesync[bot]
authored andcommitted
Fix CQS signal modernize-use-designated-initializers in xplat/yoga/yoga/algorithm (#55522)
Summary: Pull Request resolved: facebook/react-native#55522 Reviewed By: cortinico Differential Revision: D92810369 fbshipit-source-id: f2125a8fbaae3486b4a4ace59e513ce2a9367824
1 parent bf81636 commit 985ad38

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

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)