mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-18 12:47:49 +08:00
Summary: @public Remove unnecessary `const` and `extern` specifiers from `Yoga.h`. - Function declarations are `extern` by default - The removed `const` specifiers for pass-by-valye parameters are only meaningful for the *definition* of functions, not for the declaration. In this specific case, I found `const YGNodeRef` particularly confusing, as it is a `typedef` for a pointer type. `const` does not refer to the pointed-to object, but to the parameter itself, i.e. `const YGNodeRef` is `YGNode * const`, and not `const YGNode *`. Reviewed By: SidharthGuglani Differential Revision: D14999097 fbshipit-source-id: 8350870cb67f4a34722f796c4f4a2fc7dde41b99