Skip to content

Commit 345baf4

Browse files
motiz88facebook-github-bot
authored andcommitted
Fix reorder-init-list warning in RCTViewComponentView
Summary: Changes the order of `RCTBorderColors` field designators to match their declaration order, fixing one case of `-Wreorder-init-list` when compiling the RN codebase with Xcode 12. Changelog: [Internal] Reviewed By: MichaReiser Differential Revision: D23447685 fbshipit-source-id: f04a3841187f0869d2efb60e81ce075c45f27f3c
1 parent 93e7a7a commit 345baf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ static RCTCornerRadii RCTCornerRadiiFromBorderRadii(BorderRadii borderRadii)
340340

341341
static RCTBorderColors RCTBorderColorsFromBorderColors(BorderColors borderColors)
342342
{
343-
return RCTBorderColors{.left = RCTCGColorRefUnretainedFromSharedColor(borderColors.left),
344-
.top = RCTCGColorRefUnretainedFromSharedColor(borderColors.top),
343+
return RCTBorderColors{.top = RCTCGColorRefUnretainedFromSharedColor(borderColors.top),
344+
.left = RCTCGColorRefUnretainedFromSharedColor(borderColors.left),
345345
.bottom = RCTCGColorRefUnretainedFromSharedColor(borderColors.bottom),
346346
.right = RCTCGColorRefUnretainedFromSharedColor(borderColors.right)};
347347
}

0 commit comments

Comments
 (0)