Pass primitives by value
Summary: @public Passes all `float`, `bool`, etc. by value, not by reference. Reviewed By: astreet Differential Revision: D13153500 fbshipit-source-id: 95529bc2efcff144044e2c25087915b2b7ede179
This commit is contained in:
committed by
Facebook Github Bot
parent
dd12907632
commit
8d5bbecd3d
@@ -91,7 +91,7 @@ bool YGFloatArrayEqual(
|
||||
}
|
||||
|
||||
// This function returns 0 if YGFloatIsUndefined(val) is true and val otherwise
|
||||
float YGFloatSanitize(const float& val);
|
||||
float YGFloatSanitize(const float val);
|
||||
|
||||
// This function unwraps optional and returns YGUndefined if not defined or
|
||||
// op.value otherwise
|
||||
|
Reference in New Issue
Block a user