From 50d095ce322a3355dca041aabab7d40692ea2f7f Mon Sep 17 00:00:00 2001 From: empyrical Date: Tue, 5 Mar 2019 05:30:56 -0800 Subject: [PATCH] Fabric: Remove designated initializer in LayoutMetrics.h (#23758) Summary: This pull request removes the designated initializer in `LayoutMetrics.h`. This will help improve the portability of this file. [General] [Changed] - Fabric: Remove designated initializer in LayoutMetrics.h Pull Request resolved: https://github.com/facebook/react-native/pull/23758 Differential Revision: D14320526 Pulled By: shergin fbshipit-source-id: 076ad389d0985d5213b521a2ffaca4ca7ae31599 --- ReactCommon/fabric/core/layout/LayoutMetrics.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ReactCommon/fabric/core/layout/LayoutMetrics.h b/ReactCommon/fabric/core/layout/LayoutMetrics.h index b7ee04a46fc..6cc7b51b596 100644 --- a/ReactCommon/fabric/core/layout/LayoutMetrics.h +++ b/ReactCommon/fabric/core/layout/LayoutMetrics.h @@ -57,7 +57,10 @@ struct LayoutMetrics { * Represents some undefined, not-yet-computed or meaningless value of * `LayoutMetrics` type. */ -static const LayoutMetrics EmptyLayoutMetrics = {.frame = {.size = {-1, -1}}}; +static const LayoutMetrics EmptyLayoutMetrics = {/* .frame = */ { + /* .origin = */ {0, 0}, + /* .size = */ {-1, -1}, +}}; } // namespace react } // namespace facebook