Replaced default constructors with member assignments

Reviewed By: davidaurelio

Differential Revision: D10466125

fbshipit-source-id: ed92d1e054a8b5b9a6c8c09035173b11da45c368
This commit is contained in:
Sidharth Guglani
2018-10-25 08:02:04 -07:00
committed by Facebook Github Bot
parent ba9bd4eae3
commit fad2ee1a64
7 changed files with 75 additions and 133 deletions

View File

@@ -10,15 +10,15 @@
#include "Yoga.h"
struct YGConfig {
std::array<bool, YGExperimentalFeatureCount> experimentalFeatures;
bool useWebDefaults;
bool useLegacyStretchBehaviour;
bool shouldDiffLayoutWithoutLegacyStretchBehaviour;
float pointScaleFactor;
std::array<bool, YGExperimentalFeatureCount> experimentalFeatures = {};
bool useWebDefaults = false;
bool useLegacyStretchBehaviour = false;
bool shouldDiffLayoutWithoutLegacyStretchBehaviour = false;
float pointScaleFactor = 1.0f;
YGLogger logger;
YGCloneNodeFunc cloneNodeCallback;
void* context;
bool printTree;
YGCloneNodeFunc cloneNodeCallback = nullptr;
void* context = nullptr;
bool printTree = false;
YGConfig(YGLogger logger);
};