summaryrefslogtreecommitdiffstats
path: root/Source/cmFindProgramCommand.cxx
diff options
context:
space:
mode:
authorMatthias Maennich <matthias@maennich.net>2017-09-18 21:57:50 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-19 15:44:21 (GMT)
commita5279ae553caba7ab875ee06d2ce2d079907145d (patch)
tree06b58455c6c0e385fb5986b5aed447b7db173d90 /Source/cmFindProgramCommand.cxx
parenta1cdf537ffb33db3a368dc4c2c3662fa27568400 (diff)
downloadCMake-a5279ae553caba7ab875ee06d2ce2d079907145d.zip
CMake-a5279ae553caba7ab875ee06d2ce2d079907145d.tar.gz
CMake-a5279ae553caba7ab875ee06d2ce2d079907145d.tar.bz2
Use C++11 nullptr (cont.)
Fix remaining occurrences of the issue addressed in commit 5962db4389 (Use C++11 nullptr, 2017-08-22) that are only showing up on macOS. Signed-off-by: Matthias Maennich <matthias@maennich.net>
Diffstat (limited to 'Source/cmFindProgramCommand.cxx')
-rw-r--r--Source/cmFindProgramCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx
index a290229..a5dc1c6 100644
--- a/Source/cmFindProgramCommand.cxx
+++ b/Source/cmFindProgramCommand.cxx
@@ -229,7 +229,7 @@ std::string cmFindProgramCommand::GetBundleExecutable(
// returned executableURL is relative to <appbundle>/Contents/MacOS/
CFURLRef executableURL = CFBundleCopyExecutableURL(appBundle);
- if (executableURL != NULL) {
+ if (executableURL != nullptr) {
const int MAX_OSX_PATH_SIZE = 1024;
char buffer[MAX_OSX_PATH_SIZE];