From 345baf477cd708cf2f5b90cae8ddc1c312023e11 Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Tue, 1 Sep 2020 07:30:37 -0700 Subject: [PATCH] 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 --- .../Mounting/ComponentViews/View/RCTViewComponentView.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm b/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm index e5c7e6a85375fb..f90289c4d6c060 100644 --- a/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm @@ -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)}; }