diff --git a/yoga/YGNode.cpp b/yoga/YGNode.cpp index 7a71058a..37b63042 100644 --- a/yoga/YGNode.cpp +++ b/yoga/YGNode.cpp @@ -423,10 +423,10 @@ YGNode::YGNode( YGBaselineFunc baseline, YGDirtiedFunc dirtied, YGStyle style, - YGLayout layout, + const YGLayout& layout, uint32_t lineIndex, YGNodeRef parent, - YGVector children, + const YGVector& children, YGNodeRef nextChild, YGConfigRef config, bool isDirty, diff --git a/yoga/YGNode.h b/yoga/YGNode.h index 081bc235..c9c5599c 100644 --- a/yoga/YGNode.h +++ b/yoga/YGNode.h @@ -47,10 +47,10 @@ struct YGNode { YGBaselineFunc baseline, YGDirtiedFunc dirtied, YGStyle style, - YGLayout layout, + const YGLayout& layout, uint32_t lineIndex, YGNodeRef parent, - YGVector children, + const YGVector& children, YGNodeRef nextChild, YGConfigRef config, bool isDirty,