]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use nullptr for the null pointer. 5817/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 27 Jan 2018 18:19:53 +0000 (13:19 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 27 Jan 2018 22:47:58 +0000 (17:47 -0500)
include/deal.II/matrix_free/tensor_product_kernels.h
include/deal.II/particles/particle.h
source/lac/scalapack.cc

index a3f6e723caf7887e2f70c68a5c370baa168f0caa..8fe79420e1227d3c2a81a3948e53f0af941edd52 100644 (file)
@@ -77,9 +77,9 @@ namespace internal
      */
     EvaluatorTensorProduct ()
       :
-      shape_values (0),
-      shape_gradients (0),
-      shape_hessians (0)
+      shape_values (nullptr),
+      shape_gradients (nullptr),
+      shape_hessians (nullptr)
     {}
 
     /**
@@ -316,9 +316,9 @@ namespace internal
      */
     EvaluatorTensorProduct ()
       :
-      shape_values (0),
-      shape_gradients (0),
-      shape_hessians (0),
+      shape_values (nullptr),
+      shape_gradients (nullptr),
+      shape_hessians (nullptr),
       fe_degree (numbers::invalid_unsigned_int),
       n_q_points_1d (numbers::invalid_unsigned_int)
     {}
index 9cd1cf21ef34e9d739222998b33f3aebb6c38685..6ea1ee4a668d547353babc40a87b22c0e0479380 100644 (file)
@@ -347,7 +347,7 @@ namespace Particles
   void Particle<dim,spacedim>::save (Archive &ar, const unsigned int) const
   {
     unsigned int n_properties = 0;
-    if ((property_pool != NULL) && (properties != PropertyPool::invalid_handle))
+    if ((property_pool != nullptr) && (properties != PropertyPool::invalid_handle))
       n_properties = get_properties().size();
 
     ar &location
index b7918ed7f5348252bf7dd2249de3c32c29339872..a63453e3d385f809748f25964e38389401ec1832 100644 (file)
@@ -253,8 +253,8 @@ ScaLAPACKMatrix<NumberType>::copy_to (ScaLAPACKMatrix<NumberType> &dest) const
       int union_n_process_columns = 1;
       Cblacs_gridinit(&union_blacs_context, order, union_n_process_rows, union_n_process_columns);
 
-      const NumberType *loc_vals_source = NULL;
-      NumberType *loc_vals_dest = NULL;
+      const NumberType *loc_vals_source = nullptr;
+      NumberType *loc_vals_dest = nullptr;
 
       if (this->grid->mpi_process_is_active && (this->values.size()>0))
         {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.