Skip to content

Commit

Permalink
Fix reorder-init-list warning in RCTViewComponentView
Browse files Browse the repository at this point in the history
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
  • Loading branch information
motiz88 authored and facebook-github-bot committed Sep 1, 2020
1 parent 93e7a7a commit 345baf4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ static RCTCornerRadii RCTCornerRadiiFromBorderRadii(BorderRadii borderRadii)

static RCTBorderColors RCTBorderColorsFromBorderColors(BorderColors borderColors)
{
return RCTBorderColors{.left = RCTCGColorRefUnretainedFromSharedColor(borderColors.left),
.top = RCTCGColorRefUnretainedFromSharedColor(borderColors.top),
return RCTBorderColors{.top = RCTCGColorRefUnretainedFromSharedColor(borderColors.top),
.left = RCTCGColorRefUnretainedFromSharedColor(borderColors.left),
.bottom = RCTCGColorRefUnretainedFromSharedColor(borderColors.bottom),
.right = RCTCGColorRefUnretainedFromSharedColor(borderColors.right)};
}
Expand Down

0 comments on commit 345baf4

Please sign in to comment.