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:
David Aurelio
2018-11-22 03:48:16 -08:00
committed by Facebook Github Bot
parent dd12907632
commit 8d5bbecd3d
5 changed files with 31 additions and 31 deletions

View File

@@ -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