Automatic lint fixes
Summary: @public A round of automatic lint fixes. Reviewed By: SidharthGuglani Differential Revision: D14590396 fbshipit-source-id: f0b4a0ce503a1d9d46ea7ae788f9f2eac09c2ac7
This commit is contained in:
committed by
Facebook Github Bot
parent
7d7b7b9e18
commit
85352c4e45
@@ -8,37 +8,30 @@
|
||||
|
||||
#include "./Config.hh"
|
||||
|
||||
/* static */ Config * Config::create(void)
|
||||
{
|
||||
return new Config();
|
||||
/* static */ Config* Config::create(void) {
|
||||
return new Config();
|
||||
}
|
||||
|
||||
/* static */ void Config::destroy(Config * node)
|
||||
{
|
||||
delete node;
|
||||
/* static */ void Config::destroy(Config* node) {
|
||||
delete node;
|
||||
}
|
||||
|
||||
Config::Config(void)
|
||||
: m_config(YGConfigNew())
|
||||
{
|
||||
Config::Config(void) : m_config(YGConfigNew()) {}
|
||||
|
||||
Config::~Config(void) {
|
||||
YGConfigFree(m_config);
|
||||
}
|
||||
|
||||
Config::~Config(void)
|
||||
{
|
||||
YGConfigFree(m_config);
|
||||
void Config::setExperimentalFeatureEnabled(int feature, bool enabled) {
|
||||
YGConfigSetExperimentalFeatureEnabled(
|
||||
m_config, static_cast<YGExperimentalFeature>(feature), enabled);
|
||||
}
|
||||
|
||||
void Config::setExperimentalFeatureEnabled(int feature, bool enabled)
|
||||
{
|
||||
YGConfigSetExperimentalFeatureEnabled(m_config, static_cast<YGExperimentalFeature>(feature), enabled);
|
||||
void Config::setPointScaleFactor(float pixelsInPoint) {
|
||||
YGConfigSetPointScaleFactor(m_config, pixelsInPoint);
|
||||
}
|
||||
|
||||
void Config::setPointScaleFactor(float pixelsInPoint)
|
||||
{
|
||||
YGConfigSetPointScaleFactor(m_config, pixelsInPoint);
|
||||
}
|
||||
|
||||
bool Config::isExperimentalFeatureEnabled(int feature) const
|
||||
{
|
||||
return YGConfigIsExperimentalFeatureEnabled(m_config, static_cast<YGExperimentalFeature>(feature));
|
||||
bool Config::isExperimentalFeatureEnabled(int feature) const {
|
||||
return YGConfigIsExperimentalFeatureEnabled(
|
||||
m_config, static_cast<YGExperimentalFeature>(feature));
|
||||
}
|
||||
|
Reference in New Issue
Block a user