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

@@ -52,7 +52,7 @@ bool YGFloatsEqual(const float a, const float b) {
return yoga::isUndefined(a) && yoga::isUndefined(b);
}
float YGFloatSanitize(const float& val) {
float YGFloatSanitize(const float val) {
return yoga::isUndefined(val) ? 0 : val;
}