LayoutData - added explicit default fields values initialization #1802

Closed
inobelar wants to merge 2 commits from patch-1 into main
inobelar commented 2025-03-19 08:39:28 -07:00 (Migrated from github.com)

Explicit defaults add 'strictness' and take the guesswork out of what's going on in places like this:

6455a848a7/yoga/algorithm/CalculateLayout.cpp (L2345)

Explicit defaults add 'strictness' and take the guesswork out of what's going on in places like this: https://github.com/facebook/yoga/blob/6455a848a76f433bdb48b2640b7f4644774c76fd/yoga/algorithm/CalculateLayout.cpp#L2345
vercel[bot] commented 2025-03-19 08:39:33 -07:00 (Migrated from github.com)

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
yoga-website Ready (Inspect) Visit Preview 💬 Add feedback Mar 20, 2025 11:22am
[vc]: #VGTYmUVviJyVQaYZvYrERjOxnZ82RRkh3T4PVaW8jjI=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJ5b2dhLXdlYnNpdGUiLCJyb290RGlyZWN0b3J5Ijoid2Vic2l0ZSIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS9mYm9wZW5zb3VyY2UveW9nYS13ZWJzaXRlLzQ2dlc0YzZzRXZoOUhIQVRHVUF3bUJkM0ZqbnAiLCJwcmV2aWV3VXJsIjoieW9nYS13ZWJzaXRlLWdpdC1mb3JrLWlub2JlbGFyLXBhdGNoLTEtZmJvcGVuc291cmNlLnZlcmNlbC5hcHAiLCJuZXh0Q29tbWl0U3RhdHVzIjoiREVQTE9ZRUQiLCJsaXZlRmVlZGJhY2siOnsicmVzb2x2ZWQiOjAsInVucmVzb2x2ZWQiOjAsInRvdGFsIjowLCJsaW5rIjoieW9nYS13ZWJzaXRlLWdpdC1mb3JrLWlub2JlbGFyLXBhdGNoLTEtZmJvcGVuc291cmNlLnZlcmNlbC5hcHAifX1dfQ== **The latest updates on your projects**. Learn more about [Vercel for Git ↗︎](https://vercel.link/github-learn-more) | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **yoga-website** | ✅ Ready ([Inspect](https://vercel.com/fbopensource/yoga-website/46vW4c6sEvh9HHATGUAwmBd3Fjnp)) | [Visit Preview](https://yoga-website-git-fork-inobelar-patch-1-fbopensource.vercel.app) | 💬 [**Add feedback**](https://vercel.live/open-feedback/yoga-website-git-fork-inobelar-patch-1-fbopensource.vercel.app?via=pr-comment-feedback-link) | Mar 20, 2025 11:22am |
NickGerleman (Migrated from github.com) reviewed 2025-03-19 12:58:45 -07:00
@@ -36,12 +36,12 @@ enum struct LayoutPassReason : int {
};
NickGerleman (Migrated from github.com) commented 2025-03-19 12:58:45 -07:00

nit: this is already default initialized

      measureCallbackReasonsCount;
nit: this is already default initialized ```suggestion measureCallbackReasonsCount; ```
NickGerleman (Migrated from github.com) approved these changes 2025-03-19 12:58:54 -07:00
facebook-github-bot commented 2025-03-22 16:02:12 -07:00 (Migrated from github.com)

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff [on Phabricator](https://www.internalfb.com/diff/D71687310).
facebook-github-bot commented 2025-03-24 12:27:05 -07:00 (Migrated from github.com)

@NickGerleman merged this pull request in facebook/yoga@51e6095005.

@NickGerleman merged this pull request in facebook/yoga@51e6095005fd713dbfcbaf2c6296009de782d966.

Pull request closed

Sign in to join this conversation.
No description provided.