From 653150a7c40233073b59dec184fe02d8ea96f9c5 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 --- CSSLayout/CSSLayout.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CSSLayout/CSSLayout.c b/CSSLayout/CSSLayout.c index 958af3e2..df4f24f9 100644 --- a/CSSLayout/CSSLayout.c +++ b/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; }