Skip to content

Commit

Permalink
Align order of params between calculateLayoutInternal and calculateLa…
Browse files Browse the repository at this point in the history
…youtImpl (#1755)

Summary:
Pull Request resolved: #1755

X-link: facebook/react-native#47975

I've been working with callsites here and its annoying if you switch these that you need to move these params around too. Let's just make them the same order

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D66519836

fbshipit-source-id: 2e98e671270a053c6e62372e2003f1ca67774ec9
  • Loading branch information
joevilches authored and facebook-github-bot committed Nov 27, 2024
1 parent b876f59 commit be72b8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions yoga/algorithm/CalculateLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1213,10 +1213,10 @@ static void calculateLayoutImpl(
const float ownerWidth,
const float ownerHeight,
const bool performLayout,
const LayoutPassReason reason,
LayoutData& layoutMarkerData,
const uint32_t depth,
const uint32_t generationCount,
const LayoutPassReason reason) {
const uint32_t generationCount) {
yoga::assertFatalWithNode(
node,
yoga::isUndefined(availableWidth)
Expand Down Expand Up @@ -2268,10 +2268,10 @@ bool calculateLayoutInternal(
ownerWidth,
ownerHeight,
performLayout,
reason,
layoutMarkerData,
depth,
generationCount,
reason);
generationCount);

layout->lastOwnerDirection = ownerDirection;
layout->configVersion = node->getConfig()->getVersion();
Expand Down

0 comments on commit be72b8e

Please sign in to comment.