mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 08:08:24 -05:00
clang-tidy: fix modernize-use-nullptr lints
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ bool cmWIXAccessControlList::IsBooleanAttribute(std::string const& name)
|
||||
"Write",
|
||||
"WriteAttributes",
|
||||
"WriteExtendedAttributes",
|
||||
0
|
||||
nullptr
|
||||
};
|
||||
|
||||
size_t i = 0;
|
||||
|
||||
Reference in New Issue
Block a user