clang-tidy: fix modernize-use-nullptr lints

This commit is contained in:
Ben Boeckel
2023-07-27 18:05:21 -04:00
parent e8983bd20d
commit 93a366697f
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -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);
}
}
+1 -1
View File
@@ -102,7 +102,7 @@ bool cmWIXAccessControlList::IsBooleanAttribute(std::string const& name)
"Write",
"WriteAttributes",
"WriteExtendedAttributes",
0
nullptr
};
size_t i = 0;