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
This commit is contained in:
Родитель
93e7a7a70d
Коммит
345baf477c
|
@ -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)};
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче