code style fixes

This commit is contained in:
Edward Rudd 2014-01-01 11:01:05 -05:00
parent 835ea686c8
commit c6bd61d2de
3 changed files with 55 additions and 55 deletions

View file

@ -83,7 +83,8 @@ void Config::read()
po::variables_map vm;
if (confFile) {
if (confFile)
{
GUARD_ALL( po::store(po::parse_config_file(confFile, podesc, true), vm); )
po::notify(vm);
}
@ -107,7 +108,8 @@ void Config::readGameINI()
if (!customScript.empty())
{
size_t pos = customScript.find_last_of("/\\");
if (pos == customScript.npos) pos = 0;
if (pos == customScript.npos)
pos = 0;
game.title = customScript.substr(pos);
return;
@ -135,9 +137,11 @@ void Config::readGameINI()
strReplace(game.scripts, '\\', '/');
if (game.title.empty()) {
if (game.title.empty())
{
size_t pos = gameFolder.find_last_of("/\\");
if (pos == gameFolder.npos) pos = 0;
if (pos == gameFolder.npos)
pos = 0;
game.title = gameFolder.substr(pos);
}
}