From 3bdbf37142eb139b762929325c1767c1dadb8f93 Mon Sep 17 00:00:00 2001 From: Joe Vilches Date: Tue, 26 Nov 2024 11:46:48 -0800 Subject: [PATCH] Camel case LengthValue in Node.cpp Summary: X-link: https://github.com/facebook/yoga/pull/1754 This was annoying me Changelog: [Internal] Differential Revision: D66510734 --- packages/react-native/ReactCommon/yoga/yoga/node/Node.cpp | 4 ++-- packages/react-native/ReactCommon/yoga/yoga/node/Node.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-native/ReactCommon/yoga/yoga/node/Node.cpp b/packages/react-native/ReactCommon/yoga/yoga/node/Node.cpp index cf36ab09a49ea3..1bb5e8aad09251 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/node/Node.cpp +++ b/packages/react-native/ReactCommon/yoga/yoga/node/Node.cpp @@ -245,8 +245,8 @@ void Node::setLayoutHadOverflow(bool hadOverflow) { layout_.setHadOverflow(hadOverflow); } -void Node::setLayoutDimension(float LengthValue, Dimension dimension) { - layout_.setDimension(dimension, LengthValue); +void Node::setLayoutDimension(float lengthValue, Dimension dimension) { + layout_.setDimension(dimension, lengthValue); } // If both left and right are defined, then use left. Otherwise return +left or diff --git a/packages/react-native/ReactCommon/yoga/yoga/node/Node.h b/packages/react-native/ReactCommon/yoga/yoga/node/Node.h index d596c564cf26e6..a36e3e6882075b 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/node/Node.h +++ b/packages/react-native/ReactCommon/yoga/yoga/node/Node.h @@ -259,7 +259,7 @@ class YG_EXPORT Node : public ::YGNode { uint32_t computedFlexBasisGeneration); void setLayoutMeasuredDimension(float measuredDimension, Dimension dimension); void setLayoutHadOverflow(bool hadOverflow); - void setLayoutDimension(float LengthValue, Dimension dimension); + void setLayoutDimension(float lengthValue, Dimension dimension); void setLayoutDirection(Direction direction); void setLayoutMargin(float margin, PhysicalEdge edge); void setLayoutBorder(float border, PhysicalEdge edge);