Revert D48767992: C++ Cleanup 6/N: YGFloatOptional
Differential Revision: D48767992 Original commit changeset: afaff0234359 Original Phabricator Diff: D48767992 fbshipit-source-id: 4666bdbb83aebbf2f7373b3a10a8c1dd0a03f92c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8a95b785a8
commit
7cf0483b17
@@ -45,7 +45,7 @@ static void appendFormattedString(std::string& str, const char* fmt, ...) {
|
||||
static void appendFloatOptionalIfDefined(
|
||||
std::string& base,
|
||||
const std::string key,
|
||||
const FloatOptional num) {
|
||||
const YGFloatOptional num) {
|
||||
if (!num.isUndefined()) {
|
||||
appendFormattedString(base, "%s: %g; ", key.c_str(), num.unwrap());
|
||||
}
|
||||
|
Reference in New Issue
Block a user