Prevent ShadowNodeFamily from being subclassed

Summary:
Changelog: [internal]

ShadowNodeFamily shouldn't be subclassed. `final` keyword prevents it.

Reviewed By: JoshuaGross

Differential Revision: D27463121

fbshipit-source-id: 0273225246a98acfe095c5d261a266efad51b838
This commit is contained in:
Samuel Susla
2021-03-31 10:58:59 -07:00
committed by Facebook GitHub Bot
parent 10830f4db9
commit faec9cd4ce
@@ -26,7 +26,7 @@ class State;
* Represents all things that shadow nodes from the same family have in common.
* To be used inside `ShadowNode` class *only*.
*/
class ShadowNodeFamily {
class ShadowNodeFamily final {
public:
using Shared = std::shared_ptr<ShadowNodeFamily const>;
using Weak = std::weak_ptr<ShadowNodeFamily const>;