Skip to content

Commit

Permalink
Fabric: Remove redundant class forward declaration
Browse files Browse the repository at this point in the history
Summary:
Remove redundant forward declaration and make default constructor explicit.

changelog: [internal]

Reviewed By: shergin

Differential Revision: D18032511

fbshipit-source-id: 18d3f9c869a69949e6965cd7e32e0f284723f2e3
  • Loading branch information
sammy-SC authored and facebook-github-bot committed Oct 21, 2019
1 parent fd07fc9 commit 7e49cf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions ReactCommon/fabric/core/state/StateCoordinator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions ReactCommon/fabric/core/state/StateTarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7e49cf1

Please sign in to comment.