Cleanup: use nullptr

This commit is contained in:
2021-09-11 12:41:46 +02:00
parent aeeffb935e
commit 166c8be7ac
2 changed files with 2 additions and 2 deletions

View File

@@ -242,7 +242,7 @@ void MFProcedure::add_parameter(MFParamType::InterfaceType interface_type, MFVar
void MFProcedure::set_entry(MFInstruction &entry)
{
if (entry_ != NULL) {
if (entry_ != nullptr) {
entry_->prev_.remove_first_occurrence_and_reorder(MFInstructionCursor::ForEntry());
}
entry_ = &entry;

View File

@@ -457,7 +457,7 @@ static void read_velocity(const V3fArraySamplePtr &velocities,
const float velocity_scale)
{
CustomDataLayer *velocity_layer = BKE_id_attribute_new(
&config.mesh->id, "velocity", CD_PROP_FLOAT3, ATTR_DOMAIN_POINT, NULL);
&config.mesh->id, "velocity", CD_PROP_FLOAT3, ATTR_DOMAIN_POINT, nullptr);
float(*velocity)[3] = (float(*)[3])velocity_layer->data;
const int num_velocity_vectors = static_cast<int>(velocities->size());