Fabric: Remove redundant class forward declaration

Summary:
Remove redundant forward declaration and make default constructor explicit.

changelog: [internal]

Reviewed By: shergin

Differential Revision: D18032511

fbshipit-source-id: 18d3f9c869a69949e6965cd7e32e0f284723f2e3
This commit is contained in:
Samuel Susla
2019-10-21 06:22:14 -07:00
committed by Facebook Github Bot
parent fd07fc9454
commit 7e49cf1930
2 changed files with 2 additions and 4 deletions
@@ -16,8 +16,6 @@
namespace facebook {
namespace react {
class ShadowNode;
/*
* Coordinates a vision of the same state values between shadow nodes from
* the same family.
+2 -2
View File
@@ -24,12 +24,12 @@ class StateTarget {
/*
* Creates an empty target.
*/
StateTarget();
explicit StateTarget();
/*
* Creates a target which points to a given `ShadowNode`.
*/
StateTarget(const ShadowNode &shadowNode);
explicit StateTarget(const ShadowNode &shadowNode);
/*
* Copyable and moveable.