diff --git a/ReactCommon/fabric/mounting/ShadowView.h b/ReactCommon/fabric/mounting/ShadowView.h index 1746c90fd2..325bd744f4 100644 --- a/ReactCommon/fabric/mounting/ShadowView.h +++ b/ReactCommon/fabric/mounting/ShadowView.h @@ -22,30 +22,28 @@ namespace react { */ struct ShadowView final { ShadowView() = default; - ShadowView(const ShadowView &shadowView) = default; + ShadowView(ShadowView const &shadowView) = default; ShadowView(ShadowView &&shadowView) noexcept = default; - ~ShadowView(){}; - /* * Constructs a `ShadowView` from given `ShadowNode`. */ - explicit ShadowView(const ShadowNode &shadowNode); + explicit ShadowView(ShadowNode const &shadowNode); - ShadowView &operator=(const ShadowView &other) = default; + ShadowView &operator=(ShadowView const &other) = default; ShadowView &operator=(ShadowView &&other) = default; - bool operator==(const ShadowView &rhs) const; - bool operator!=(const ShadowView &rhs) const; + bool operator==(ShadowView const &rhs) const; + bool operator!=(ShadowView const &rhs) const; - ComponentName componentName = ""; - ComponentHandle componentHandle = 0; - Tag tag = -1; // Tag does not change during the lifetime of a shadow view. - SharedProps props = {}; - SharedEventEmitter eventEmitter = {}; - LayoutMetrics layoutMetrics = EmptyLayoutMetrics; - SharedLocalData localData = {}; - State::Shared state = {}; + ComponentName componentName{}; + ComponentHandle componentHandle{}; + Tag tag{}; + Props::Shared props{}; + EventEmitter::Shared eventEmitter{}; + LayoutMetrics layoutMetrics{EmptyLayoutMetrics}; + LocalData::Shared localData{}; + State::Shared state{}; }; #if RN_DEBUG_STRING_CONVERTIBLE