[wpigui] clang-tidy: readability-braces-around-statements

This commit is contained in:
Prateek Machiraju
2021-01-25 10:40:12 -05:00
committed by Peter Johnson
parent f7d39193a4
commit fb5c8c39ae

View File

@@ -394,12 +394,14 @@ void gui::ConfigurePlatformSaveFile(const std::string& name) {
gContext->iniPath = name;
#if defined(_MSC_VER)
const char* env = std::getenv("APPDATA");
if (env)
if (env) {
gContext->iniPath = env + std::string("/" + name);
}
#elif defined(__APPLE__)
const char* env = std::getenv("HOME");
if (env)
if (env) {
gContext->iniPath = env + std::string("/Library/Preferences/" + name);
}
#else
const char* xdg = std::getenv("XDG_CONFIG_HOME");
const char* env = std::getenv("HOME");