Skip to content

Commit

Permalink
Change more method arguments to const
Browse files Browse the repository at this point in the history
Summary:
Change more method arguments to ```const```
Closes facebook/yoga#252

Reviewed By: emilsjolander

Differential Revision: D4199335

Pulled By: splhack

fbshipit-source-id: f54fccaea8051a49c6cdf0fcaf1a68c025ba26da
  • Loading branch information
woehrl01 authored and Facebook Github Bot committed Nov 18, 2016
1 parent fb4d9f2 commit ee28587
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions React/CSSLayout/CSSLayout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions ReactCommon/CSSLayout/CSSLayout/CSSLayout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit ee28587

Please sign in to comment.