diff options
author | scivision <scivision@users.noreply.github.com> | 2023-02-14 19:06:08 (GMT) |
---|---|---|
committer | scivision <scivision@users.noreply.github.com> | 2023-02-14 19:34:03 (GMT) |
commit | 7b0a629693bb3771eed9d922b8138ccc6e5ae0c2 (patch) | |
tree | cec26df2a6554f9a7031646931dfb1ec6f70912b /Source/CPack | |
parent | 283432a1aaa72cd0dc5c0bd0e301bccfd52edd01 (diff) | |
download | CMake-7b0a629693bb3771eed9d922b8138ccc6e5ae0c2.zip CMake-7b0a629693bb3771eed9d922b8138ccc6e5ae0c2.tar.gz CMake-7b0a629693bb3771eed9d922b8138ccc6e5ae0c2.tar.bz2 |
Source: use C++11 nullptr
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cmCPackFreeBSDGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackFreeBSDGenerator.cxx b/Source/CPack/cmCPackFreeBSDGenerator.cxx index 162dfc7..ea7b24b 100644 --- a/Source/CPack/cmCPackFreeBSDGenerator.cxx +++ b/Source/CPack/cmCPackFreeBSDGenerator.cxx @@ -263,7 +263,7 @@ cmGeneratedFileStream& operator<<(cmGeneratedFileStream& s, } // Look up variable; if no value is set, returns an empty string; -// basically a wrapper that handles the NULL-ptr return from GetOption(). +// basically a wrapper that handles the nullptr return from GetOption(). std::string cmCPackFreeBSDGenerator::var_lookup(const char* var_name) { cmValue pv = this->GetOption(var_name); @@ -402,7 +402,7 @@ int cmCPackFreeBSDGenerator::PackageFiles() this->packageFileNames.emplace_back(actualPackage); } - if (!pkg_initialized() && pkg_init(NULL, NULL) != EPKG_OK) { + if (!pkg_initialized() && pkg_init(nullptr, nullptr) != EPKG_OK) { cmCPackLogger(cmCPackLog::LOG_ERROR, "Can not initialize FreeBSD libpkg." << std::endl); return 0; |