C++ style enums 2/N: NodeType (#1383)
Summary: X-link: https://github.com/facebook/react-native/pull/39450 Pull Request resolved: https://github.com/facebook/yoga/pull/1383 This converts usages of YGNodeType to NodeType Reviewed By: rozele Differential Revision: D49269117 fbshipit-source-id: 27318279fe555c28c605625a160d5be781b662b8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4cd45ac5d5
commit
9129a0af87
@@ -227,7 +227,7 @@ void Node::setMeasureFunc(YGMeasureFunc measureFunc) {
|
||||
if (measureFunc == nullptr) {
|
||||
// TODO: t18095186 Move nodeType to opt-in function and mark appropriate
|
||||
// places in Litho
|
||||
setNodeType(YGNodeTypeDefault);
|
||||
setNodeType(NodeType::Default);
|
||||
} else {
|
||||
yoga::assertFatalWithNode(
|
||||
this,
|
||||
@@ -236,7 +236,7 @@ void Node::setMeasureFunc(YGMeasureFunc measureFunc) {
|
||||
"children.");
|
||||
// TODO: t18095186 Move nodeType to opt-in function and mark appropriate
|
||||
// places in Litho
|
||||
setNodeType(YGNodeTypeText);
|
||||
setNodeType(NodeType::Text);
|
||||
}
|
||||
|
||||
measureFunc_ = measureFunc;
|
||||
|
Reference in New Issue
Block a user