Pass primitives by value
Summary: @public Passes all `float`, `bool`, etc. by value, not by reference. Reviewed By: astreet Differential Revision: D13153500 fbshipit-source-id: 95529bc2efcff144044e2c25087915b2b7ede179
This commit is contained in:
committed by
Facebook Github Bot
parent
dd12907632
commit
8d5bbecd3d
@@ -1221,8 +1221,8 @@ static inline bool YGNodeIsLayoutDimDefined(
|
||||
static YGFloatOptional YGNodeBoundAxisWithinMinAndMax(
|
||||
const YGNodeRef node,
|
||||
const YGFlexDirection& axis,
|
||||
const float& value,
|
||||
const float& axisSize) {
|
||||
const float value,
|
||||
const float axisSize) {
|
||||
YGFloatOptional min;
|
||||
YGFloatOptional max;
|
||||
|
||||
@@ -2422,17 +2422,17 @@ static void YGResolveFlexibleLength(
|
||||
static void YGJustifyMainAxis(
|
||||
const YGNodeRef node,
|
||||
YGCollectFlexItemsRowValues& collectedFlexItemsValues,
|
||||
const uint32_t& startOfLineIndex,
|
||||
const uint32_t startOfLineIndex,
|
||||
const YGFlexDirection& mainAxis,
|
||||
const YGFlexDirection& crossAxis,
|
||||
const YGMeasureMode& measureModeMainDim,
|
||||
const YGMeasureMode& measureModeCrossDim,
|
||||
const float& mainAxisownerSize,
|
||||
const float& ownerWidth,
|
||||
const float& availableInnerMainDim,
|
||||
const float& availableInnerCrossDim,
|
||||
const float& availableInnerWidth,
|
||||
const bool& performLayout) {
|
||||
const float mainAxisownerSize,
|
||||
const float ownerWidth,
|
||||
const float availableInnerMainDim,
|
||||
const float availableInnerCrossDim,
|
||||
const float availableInnerWidth,
|
||||
const bool performLayout) {
|
||||
const YGStyle& style = node->getStyle();
|
||||
const float leadingPaddingAndBorderMain = YGUnwrapFloatOptional(
|
||||
node->getLeadingPaddingAndBorder(mainAxis, ownerWidth));
|
||||
|
Reference in New Issue
Block a user