[Bf-blender-cvs] [956cf9a48df] geometry-nodes: Cleanup: Clang Tidy

Hans Goudey noreply at git.blender.org
Thu Nov 12 22:06:20 CET 2020


Commit: 956cf9a48dfac994a427cc6119101fb1417909e0
Author: Hans Goudey
Date:   Thu Nov 12 16:06:12 2020 -0500
Branches: geometry-nodes
https://developer.blender.org/rB956cf9a48dfac994a427cc6119101fb1417909e0

Cleanup: Clang Tidy

===================================================================

M	source/blender/blenkernel/intern/pointcloud.cc

===================================================================

diff --git a/source/blender/blenkernel/intern/pointcloud.cc b/source/blender/blenkernel/intern/pointcloud.cc
index df88b3ad7d4..1af9e8f84f0 100644
--- a/source/blender/blenkernel/intern/pointcloud.cc
+++ b/source/blender/blenkernel/intern/pointcloud.cc
@@ -88,7 +88,7 @@ static void pointcloud_copy_data(Main *UNUSED(bmain), ID *id_dst, const ID *id_s
                   pointcloud_dst->totpoint);
   BKE_pointcloud_update_customdata_pointers(pointcloud_dst);
 
-  pointcloud_dst->batch_cache = NULL;
+  pointcloud_dst->batch_cache = nullptr;
 }
 
 static void pointcloud_free_data(ID *id)
@@ -235,8 +235,8 @@ void *BKE_pointcloud_add_default(Main *bmain, const char *name)
 
 PointCloud *BKE_pointcloud_new_nomain(const int totpoint)
 {
-  PointCloud *pointcloud = static_cast<PointCloud *>(
-      BKE_libblock_alloc(NULL, ID_PT, BKE_idtype_idcode_to_name(ID_PT), LIB_ID_CREATE_LOCALIZE));
+  PointCloud *pointcloud = static_cast<PointCloud *>(BKE_libblock_alloc(
+      nullptr, ID_PT, BKE_idtype_idcode_to_name(ID_PT), LIB_ID_CREATE_LOCALIZE));
 
   pointcloud_init_data(&pointcloud->id);
 
@@ -245,7 +245,7 @@ PointCloud *BKE_pointcloud_new_nomain(const int totpoint)
   CustomData_add_layer_named(&pointcloud->pdata,
                              CD_PROP_FLOAT,
                              CD_CALLOC,
-                             NULL,
+                             nullptr,
                              pointcloud->totpoint,
                              POINTCLOUD_ATTR_RADIUS);



More information about the Bf-blender-cvs mailing list