Skip to content

Commit 1cc336f

Browse files
CodemodService Botfacebook-github-bot
authored andcommitted
Fix CQS signal modernize-use-designated-initializers in xplat/yoga/tests
Reviewed By: christophpurrer Differential Revision: D86082482
1 parent 69e87a4 commit 1cc336f

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

tests/YGMeasureModeTest.cpp

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ static YGSize _measure(
4343

4444
TEST(YogaTest, exactly_measure_stretched_child_column) {
4545
auto constraintList = _MeasureConstraintList{
46-
0,
47-
(struct _MeasureConstraint*)malloc(
46+
.length = 0,
47+
.constraints = (struct _MeasureConstraint*)malloc(
4848
10 * sizeof(struct _MeasureConstraint)),
4949
};
5050

@@ -70,8 +70,8 @@ TEST(YogaTest, exactly_measure_stretched_child_column) {
7070

7171
TEST(YogaTest, exactly_measure_stretched_child_row) {
7272
auto constraintList = _MeasureConstraintList{
73-
0,
74-
(struct _MeasureConstraint*)malloc(
73+
.length = 0,
74+
.constraints = (struct _MeasureConstraint*)malloc(
7575
10 * sizeof(struct _MeasureConstraint)),
7676
};
7777

@@ -98,8 +98,8 @@ TEST(YogaTest, exactly_measure_stretched_child_row) {
9898

9999
TEST(YogaTest, at_most_main_axis_column) {
100100
auto constraintList = _MeasureConstraintList{
101-
0,
102-
(struct _MeasureConstraint*)malloc(
101+
.length = 0,
102+
.constraints = (struct _MeasureConstraint*)malloc(
103103
10 * sizeof(struct _MeasureConstraint)),
104104
};
105105

@@ -125,8 +125,8 @@ TEST(YogaTest, at_most_main_axis_column) {
125125

126126
TEST(YogaTest, at_most_cross_axis_column) {
127127
auto constraintList = _MeasureConstraintList{
128-
0,
129-
(struct _MeasureConstraint*)malloc(
128+
.length = 0,
129+
.constraints = (struct _MeasureConstraint*)malloc(
130130
10 * sizeof(struct _MeasureConstraint)),
131131
};
132132

@@ -153,8 +153,8 @@ TEST(YogaTest, at_most_cross_axis_column) {
153153

154154
TEST(YogaTest, at_most_main_axis_row) {
155155
auto constraintList = _MeasureConstraintList{
156-
0,
157-
(struct _MeasureConstraint*)malloc(
156+
.length = 0,
157+
.constraints = (struct _MeasureConstraint*)malloc(
158158
10 * sizeof(struct _MeasureConstraint)),
159159
};
160160

@@ -181,8 +181,8 @@ TEST(YogaTest, at_most_main_axis_row) {
181181

182182
TEST(YogaTest, at_most_cross_axis_row) {
183183
auto constraintList = _MeasureConstraintList{
184-
0,
185-
(struct _MeasureConstraint*)malloc(
184+
.length = 0,
185+
.constraints = (struct _MeasureConstraint*)malloc(
186186
10 * sizeof(struct _MeasureConstraint)),
187187
};
188188

@@ -210,8 +210,8 @@ TEST(YogaTest, at_most_cross_axis_row) {
210210

211211
TEST(YogaTest, flex_child) {
212212
auto constraintList = _MeasureConstraintList{
213-
0,
214-
(struct _MeasureConstraint*)malloc(
213+
.length = 0,
214+
.constraints = (struct _MeasureConstraint*)malloc(
215215
10 * sizeof(struct _MeasureConstraint)),
216216
};
217217

@@ -240,8 +240,8 @@ TEST(YogaTest, flex_child) {
240240

241241
TEST(YogaTest, flex_child_with_flex_basis) {
242242
auto constraintList = _MeasureConstraintList{
243-
0,
244-
(struct _MeasureConstraint*)malloc(
243+
.length = 0,
244+
.constraints = (struct _MeasureConstraint*)malloc(
245245
10 * sizeof(struct _MeasureConstraint)),
246246
};
247247

@@ -268,8 +268,8 @@ TEST(YogaTest, flex_child_with_flex_basis) {
268268

269269
TEST(YogaTest, overflow_scroll_column) {
270270
auto constraintList = _MeasureConstraintList{
271-
0,
272-
(struct _MeasureConstraint*)malloc(
271+
.length = 0,
272+
.constraints = (struct _MeasureConstraint*)malloc(
273273
10 * sizeof(struct _MeasureConstraint)),
274274
};
275275

@@ -300,8 +300,8 @@ TEST(YogaTest, overflow_scroll_column) {
300300

301301
TEST(YogaTest, overflow_scroll_row) {
302302
auto constraintList = _MeasureConstraintList{
303-
0,
304-
(struct _MeasureConstraint*)malloc(
303+
.length = 0,
304+
.constraints = (struct _MeasureConstraint*)malloc(
305305
10 * sizeof(struct _MeasureConstraint)),
306306
};
307307

0 commit comments

Comments
 (0)