diff options
author | Brad King <brad.king@kitware.com> | 2018-11-28 14:07:01 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-11-28 14:07:07 (GMT) |
commit | 58ebbf14c232d647e920727225dbf4c64d648128 (patch) | |
tree | 025b636ddaa68fe8621d8207719add9db8c0f4fd /Source/QtDialog | |
parent | b134e89430404b7ad211ccd7b072c28410fae230 (diff) | |
parent | cb6229b8b8aabfc9700dae88485c89738af928bc (diff) | |
download | CMake-58ebbf14c232d647e920727225dbf4c64d648128.zip CMake-58ebbf14c232d647e920727225dbf4c64d648128.tar.gz CMake-58ebbf14c232d647e920727225dbf4c64d648128.tar.bz2 |
Merge topic 'clang-tidy-macos'
cb6229b8b8 clang-tidy: fix warnings in macOS-only code
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2670
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/CMakeSetup.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx index 7b980a0..be4e003 100644 --- a/Source/QtDialog/CMakeSetup.cxx +++ b/Source/QtDialog/CMakeSetup.cxx @@ -216,12 +216,11 @@ static bool cmOSXInstall(std::string const& dir, std::string const& tool) if (symlink(tool.c_str(), link.c_str()) == 0) { std::cerr << "Linked: '" << link << "' -> '" << tool << "'\n"; return true; - } else { - int err = errno; - std::cerr << "Failed: '" << link << "' -> '" << tool - << "': " << strerror(err) << "\n"; - return false; } + int err = errno; + std::cerr << "Failed: '" << link << "' -> '" << tool + << "': " << strerror(err) << "\n"; + return false; } static int cmOSXInstall(std::string dir) { |