summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorscivision <scivision@users.noreply.github.com>2023-02-14 19:06:08 (GMT)
committerscivision <scivision@users.noreply.github.com>2023-02-14 19:34:03 (GMT)
commit7b0a629693bb3771eed9d922b8138ccc6e5ae0c2 (patch)
treecec26df2a6554f9a7031646931dfb1ec6f70912b /Source/CPack
parent283432a1aaa72cd0dc5c0bd0e301bccfd52edd01 (diff)
downloadCMake-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.cxx4
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;