Apply style fix

This commit is contained in:
Antz 2020-01-10 23:13:44 +00:00
parent 5531a0087d
commit 35405dd549
155 changed files with 10968 additions and 3660 deletions

View file

@ -37,7 +37,9 @@ INSTANTIATE_SINGLETON_1(Config);
static bool GetValueHelper(ACE_Configuration_Heap* mConf, const char* name, ACE_TString& result)
{
if (!mConf)
{ return false; }
{
return false;
}
ACE_TString section_name;
ACE_Configuration_Section_Key section_key;
@ -48,7 +50,9 @@ static bool GetValueHelper(ACE_Configuration_Heap* mConf, const char* name, ACE_
{
mConf->open_section(root_key, section_name.c_str(), 0, section_key);
if (mConf->get_string_value(section_key, name, result) == 0)
{ return true; }
{
return true;
}
++i;
}
@ -81,7 +85,9 @@ bool Config::Reload()
{
ACE_Ini_ImpExp config_importer(*mConf);
if (config_importer.import_config(mFilename.c_str()) == 0)
{ return true; }
{
return true;
}
}
delete mConf;
@ -99,7 +105,9 @@ bool Config::GetBoolDefault(const char* name, bool def)
{
ACE_TString val;
if (!GetValueHelper(mConf, name, val))
{ return def; }
{
return def;
}
const char* str = val.c_str();
if (strcmp(str, "true") == 0 || strcmp(str, "TRUE") == 0 ||