From fb5c8c39aec5bb13a71261094a0ba0e12a70823d Mon Sep 17 00:00:00 2001 From: Prateek Machiraju Date: Mon, 25 Jan 2021 10:40:12 -0500 Subject: [PATCH] [wpigui] clang-tidy: readability-braces-around-statements --- wpigui/src/main/native/cpp/wpigui.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wpigui/src/main/native/cpp/wpigui.cpp b/wpigui/src/main/native/cpp/wpigui.cpp index fae573fa09..48c04bc7a8 100644 --- a/wpigui/src/main/native/cpp/wpigui.cpp +++ b/wpigui/src/main/native/cpp/wpigui.cpp @@ -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");