Skip to content

Commit

Permalink
Reorder fields (#3482)
Browse files Browse the repository at this point in the history
## Description

This PR fixes `warning: field 'newestShadowNodesRegistry_' will be initialized after field 'propsParserContext_' [-Wreorder]` when compiling Reanimated sources for Android with Fabric enabled.
  • Loading branch information
tomekzaw authored Aug 22, 2022
1 parent 8c39e4f commit e7d2692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/cpp/headers/Fabric/ShadowTreeCloner.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class ShadowTreeCloner {
void updateYogaChildren();

private:
PropsParserContext propsParserContext_;
std::shared_ptr<NewestShadowNodesRegistry> newestShadowNodesRegistry_;
PropsParserContext propsParserContext_;
std::set<ShadowNode *> yogaChildrenUpdates_;
};

Expand Down

0 comments on commit e7d2692

Please sign in to comment.