From faec9cd4ce487c6301f2ea24b8921bc1abbb18f8 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Wed, 31 Mar 2021 10:57:21 -0700 Subject: [PATCH] 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 --- ReactCommon/react/renderer/core/ShadowNodeFamily.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/react/renderer/core/ShadowNodeFamily.h b/ReactCommon/react/renderer/core/ShadowNodeFamily.h index ad3ecf0e36d..2f57666c179 100644 --- a/ReactCommon/react/renderer/core/ShadowNodeFamily.h +++ b/ReactCommon/react/renderer/core/ShadowNodeFamily.h @@ -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; using Weak = std::weak_ptr;