diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-27 22:05:21 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-28 00:15:51 (GMT) |
commit | 93a366697f5310738935b2f25dbf978f39031764 (patch) | |
tree | 45e057d419bc4739abfed78cf690ad65f63c450f /Source/CPack/WiX/cmCPackWIXGenerator.cxx | |
parent | e8983bd20d7bfecba1d5961a68e61bc13efe5e37 (diff) | |
download | CMake-93a366697f5310738935b2f25dbf978f39031764.zip CMake-93a366697f5310738935b2f25dbf978f39031764.tar.gz CMake-93a366697f5310738935b2f25dbf978f39031764.tar.bz2 |
clang-tidy: fix `modernize-use-nullptr` lints
Diffstat (limited to 'Source/CPack/WiX/cmCPackWIXGenerator.cxx')
-rw-r--r-- | Source/CPack/WiX/cmCPackWIXGenerator.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/CPack/WiX/cmCPackWIXGenerator.cxx b/Source/CPack/WiX/cmCPackWIXGenerator.cxx index 0dd7760..1f55b80 100644 --- a/Source/CPack/WiX/cmCPackWIXGenerator.cxx +++ b/Source/CPack/WiX/cmCPackWIXGenerator.cxx @@ -63,8 +63,9 @@ bool cmCPackWIXGenerator::RunWiXCommand(std::string const& command) std::string output; int returnValue = 0; - bool status = cmSystemTools::RunSingleCommand( - command, &output, &output, &returnValue, 0, cmSystemTools::OUTPUT_NONE); + bool status = + cmSystemTools::RunSingleCommand(command, &output, &output, &returnValue, + nullptr, cmSystemTools::OUTPUT_NONE); cmsys::ofstream logFile(logFileName.c_str(), std::ios::app); logFile << command << std::endl; @@ -665,7 +666,7 @@ bool cmCPackWIXGenerator::CreateFeatureHierarchy( { for (auto const& i : ComponentGroups) { cmCPackComponentGroup const& group = i.second; - if (group.ParentGroup == 0) { + if (group.ParentGroup == nullptr) { featureDefinitions.EmitFeatureForComponentGroup(group, *this->Patch); } } |