Camel case LengthValue in Node.cpp (#1754)

Summary:
X-link: https://github.com/facebook/react-native/pull/47971

Pull Request resolved: https://github.com/facebook/yoga/pull/1754

This was annoying me

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D66510734

fbshipit-source-id: d1b952f2e82e7018b16dc0c572d9b98aec18c0e5
This commit is contained in:
Joe Vilches
2024-11-26 15:23:08 -08:00
committed by Facebook GitHub Bot
parent be00354b71
commit b876f596d9
2 changed files with 3 additions and 3 deletions

View File

@@ -245,8 +245,8 @@ void Node::setLayoutHadOverflow(bool hadOverflow) {
layout_.setHadOverflow(hadOverflow); layout_.setHadOverflow(hadOverflow);
} }
void Node::setLayoutDimension(float LengthValue, Dimension dimension) { void Node::setLayoutDimension(float lengthValue, Dimension dimension) {
layout_.setDimension(dimension, LengthValue); layout_.setDimension(dimension, lengthValue);
} }
// If both left and right are defined, then use left. Otherwise return +left or // If both left and right are defined, then use left. Otherwise return +left or

View File

@@ -259,7 +259,7 @@ class YG_EXPORT Node : public ::YGNode {
uint32_t computedFlexBasisGeneration); uint32_t computedFlexBasisGeneration);
void setLayoutMeasuredDimension(float measuredDimension, Dimension dimension); void setLayoutMeasuredDimension(float measuredDimension, Dimension dimension);
void setLayoutHadOverflow(bool hadOverflow); void setLayoutHadOverflow(bool hadOverflow);
void setLayoutDimension(float LengthValue, Dimension dimension); void setLayoutDimension(float lengthValue, Dimension dimension);
void setLayoutDirection(Direction direction); void setLayoutDirection(Direction direction);
void setLayoutMargin(float margin, PhysicalEdge edge); void setLayoutMargin(float margin, PhysicalEdge edge);
void setLayoutBorder(float border, PhysicalEdge edge); void setLayoutBorder(float border, PhysicalEdge edge);