diff --git a/ReactCommon/fabric/components/view/yoga/YogaStylableProps.cpp b/ReactCommon/fabric/components/view/yoga/YogaStylableProps.cpp index 03478ee3369..de1ea98d38e 100644 --- a/ReactCommon/fabric/components/view/yoga/YogaStylableProps.cpp +++ b/ReactCommon/fabric/components/view/yoga/YogaStylableProps.cpp @@ -19,19 +19,19 @@ namespace facebook { namespace react { -YogaStylableProps::YogaStylableProps(const YGStyle &yogaStyle) +YogaStylableProps::YogaStylableProps(YGStyle const &yogaStyle) : yogaStyle(yogaStyle) {} YogaStylableProps::YogaStylableProps( - const YogaStylableProps &sourceProps, - const RawProps &rawProps) + YogaStylableProps const &sourceProps, + RawProps const &rawProps) : yogaStyle(convertRawProp(rawProps, sourceProps.yogaStyle)){}; #pragma mark - DebugStringConvertible #if RN_DEBUG_STRING_CONVERTIBLE SharedDebugStringConvertibleList YogaStylableProps::getDebugProps() const { - const auto defaultYogaStyle = YGStyle{}; + auto const defaultYogaStyle = YGStyle{}; return { debugStringConvertibleItem( "direction", yogaStyle.direction(), defaultYogaStyle.direction()), diff --git a/ReactCommon/fabric/components/view/yoga/YogaStylableProps.h b/ReactCommon/fabric/components/view/yoga/YogaStylableProps.h index 6fa82ebe146..a6b4795cda7 100644 --- a/ReactCommon/fabric/components/view/yoga/YogaStylableProps.h +++ b/ReactCommon/fabric/components/view/yoga/YogaStylableProps.h @@ -15,23 +15,19 @@ namespace facebook { namespace react { -class YogaStylableProps; - -typedef std::shared_ptr SharedYogaStylableProps; - class YogaStylableProps { public: YogaStylableProps() = default; - YogaStylableProps(const YGStyle &yogaStyle); + YogaStylableProps(YGStyle const &yogaStyle); YogaStylableProps( - const YogaStylableProps &sourceProps, - const RawProps &rawProps); + YogaStylableProps const &sourceProps, + RawProps const &rawProps); #pragma mark - Props protected: friend class YogaLayoutableShadowNode; - const YGStyle yogaStyle{}; + YGStyle const yogaStyle{}; #if RN_DEBUG_STRING_CONVERTIBLE