From ed0ba1bfc7ae4e213b1c4362f812da05f4e299ce Mon Sep 17 00:00:00 2001 From: Jonathan Dann Date: Wed, 21 Mar 2018 16:05:10 -0700 Subject: [PATCH] Pass some constructor argumetns by const-reference Reviewed By: priteshrnandgaonkar Differential Revision: D7291363 fbshipit-source-id: 22e606d0b3fa1133d7e0334c8cf9f5f1f32fe64b --- ReactCommon/yoga/yoga/YGNode.cpp | 4 ++-- ReactCommon/yoga/yoga/YGNode.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ReactCommon/yoga/yoga/YGNode.cpp b/ReactCommon/yoga/yoga/YGNode.cpp index 7a71058a7..37b630426 100644 --- a/ReactCommon/yoga/yoga/YGNode.cpp +++ b/ReactCommon/yoga/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/ReactCommon/yoga/yoga/YGNode.h b/ReactCommon/yoga/yoga/YGNode.h index 081bc235c..c9c5599c0 100644 --- a/ReactCommon/yoga/yoga/YGNode.h +++ b/ReactCommon/yoga/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,