summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-11-28 14:07:01 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-11-28 14:07:07 (GMT)
commit58ebbf14c232d647e920727225dbf4c64d648128 (patch)
tree025b636ddaa68fe8621d8207719add9db8c0f4fd /Source/QtDialog
parentb134e89430404b7ad211ccd7b072c28410fae230 (diff)
parentcb6229b8b8aabfc9700dae88485c89738af928bc (diff)
downloadCMake-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.cxx9
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)
{