mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 20:01:01 +08:00
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
This commit is contained in:
committed by
Facebook Github Bot
parent
fb4d9f204a
commit
ee285876d2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user