Pass some constructor argumetns by const-reference

Reviewed By: priteshrnandgaonkar

Differential Revision: D7291363

fbshipit-source-id: 22e606d0b3fa1133d7e0334c8cf9f5f1f32fe64b
This commit is contained in:
Jonathan Dann 2018-03-21 16:05:10 -07:00 committed by Facebook Github Bot
parent 0b085a80bd
commit ed0ba1bfc7
2 changed files with 4 additions and 4 deletions

View File

@ -423,10 +423,10 @@ YGNode::YGNode(
YGBaselineFunc baseline, YGBaselineFunc baseline,
YGDirtiedFunc dirtied, YGDirtiedFunc dirtied,
YGStyle style, YGStyle style,
YGLayout layout, const YGLayout& layout,
uint32_t lineIndex, uint32_t lineIndex,
YGNodeRef parent, YGNodeRef parent,
YGVector children, const YGVector& children,
YGNodeRef nextChild, YGNodeRef nextChild,
YGConfigRef config, YGConfigRef config,
bool isDirty, bool isDirty,

View File

@ -47,10 +47,10 @@ struct YGNode {
YGBaselineFunc baseline, YGBaselineFunc baseline,
YGDirtiedFunc dirtied, YGDirtiedFunc dirtied,
YGStyle style, YGStyle style,
YGLayout layout, const YGLayout& layout,
uint32_t lineIndex, uint32_t lineIndex,
YGNodeRef parent, YGNodeRef parent,
YGVector children, const YGVector& children,
YGNodeRef nextChild, YGNodeRef nextChild,
YGConfigRef config, YGConfigRef config,
bool isDirty, bool isDirty,