From ee285876d24f2814cb32a7b1cc69b846df6c8db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20W=C3=B6hrl?= Date: Thu, 17 Nov 2016 20:41:47 -0800 Subject: [PATCH] Change more method arguments to const Summary: Change more method arguments to ```const``` Closes https://github.com/facebook/css-layout/pull/252 Reviewed By: emilsjolander Differential Revision: D4199335 Pulled By: splhack fbshipit-source-id: f54fccaea8051a49c6cdf0fcaf1a68c025ba26da --- React/CSSLayout/CSSLayout.c | 6 +++--- ReactCommon/CSSLayout/CSSLayout/CSSLayout.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/React/CSSLayout/CSSLayout.c b/React/CSSLayout/CSSLayout.c index 958af3e2758..df4f24f9229 100644 --- a/React/CSSLayout/CSSLayout.c +++ b/React/CSSLayout/CSSLayout.c @@ -350,7 +350,7 @@ void CSSNodeCopyStyle(const CSSNodeRef dstNode, const CSSNodeRef srcNode) { } } -inline float CSSNodeStyleGetFlexGrow(CSSNodeRef node) { +inline float CSSNodeStyleGetFlexGrow(const CSSNodeRef node) { if (!CSSValueIsUndefined(node->style.flexGrow)) { return node->style.flexGrow; } @@ -360,7 +360,7 @@ inline float CSSNodeStyleGetFlexGrow(CSSNodeRef node) { return 0; } -inline float CSSNodeStyleGetFlexShrink(CSSNodeRef node) { +inline float CSSNodeStyleGetFlexShrink(const CSSNodeRef node) { if (!CSSValueIsUndefined(node->style.flexShrink)) { return node->style.flexShrink; } @@ -370,7 +370,7 @@ inline float CSSNodeStyleGetFlexShrink(CSSNodeRef node) { return 0; } -inline float CSSNodeStyleGetFlexBasis(CSSNodeRef node) { +inline float CSSNodeStyleGetFlexBasis(const CSSNodeRef node) { if (!CSSValueIsUndefined(node->style.flexBasis)) { return node->style.flexBasis; } diff --git a/ReactCommon/CSSLayout/CSSLayout/CSSLayout.c b/ReactCommon/CSSLayout/CSSLayout/CSSLayout.c index 958af3e2758..df4f24f9229 100644 --- a/ReactCommon/CSSLayout/CSSLayout/CSSLayout.c +++ b/ReactCommon/CSSLayout/CSSLayout/CSSLayout.c @@ -350,7 +350,7 @@ void CSSNodeCopyStyle(const CSSNodeRef dstNode, const CSSNodeRef srcNode) { } } -inline float CSSNodeStyleGetFlexGrow(CSSNodeRef node) { +inline float CSSNodeStyleGetFlexGrow(const CSSNodeRef node) { if (!CSSValueIsUndefined(node->style.flexGrow)) { return node->style.flexGrow; } @@ -360,7 +360,7 @@ inline float CSSNodeStyleGetFlexGrow(CSSNodeRef node) { return 0; } -inline float CSSNodeStyleGetFlexShrink(CSSNodeRef node) { +inline float CSSNodeStyleGetFlexShrink(const CSSNodeRef node) { if (!CSSValueIsUndefined(node->style.flexShrink)) { return node->style.flexShrink; } @@ -370,7 +370,7 @@ inline float CSSNodeStyleGetFlexShrink(CSSNodeRef node) { return 0; } -inline float CSSNodeStyleGetFlexBasis(CSSNodeRef node) { +inline float CSSNodeStyleGetFlexBasis(const CSSNodeRef node) { if (!CSSValueIsUndefined(node->style.flexBasis)) { return node->style.flexBasis; }