From: Bruno Turcksin Date: Mon, 28 Mar 2016 21:25:51 +0000 (-0400) Subject: Do not assign NULL to shared_ptr. X-Git-Tag: v8.5.0-rc1~1158^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2432%2Fhead;p=dealii.git Do not assign NULL to shared_ptr. --- diff --git a/include/deal.II/lac/read_write_vector.h b/include/deal.II/lac/read_write_vector.h index 0f55cda3bd..39b4d25a1f 100644 --- a/include/deal.II/lac/read_write_vector.h +++ b/include/deal.II/lac/read_write_vector.h @@ -233,7 +233,8 @@ namespace LinearAlgebra */ void import(const PETScWrappers::MPI::Vector &petsc_vec, VectorOperation::values operation, - std_cxx11::shared_ptr communication_pattern = NULL); + std_cxx11::shared_ptr communication_pattern = + std_cxx11::shared_ptr ()); #endif #ifdef DEAL_II_WITH_TRILINOS @@ -247,7 +248,8 @@ namespace LinearAlgebra */ void import(const TrilinosWrappers::MPI::Vector &trilinos_vec, VectorOperation::values operation, - std_cxx11::shared_ptr communication_pattern = NULL); + std_cxx11::shared_ptr communication_pattern = + std_cxx11::shared_ptr ()); /** * Imports all the elements present in the vector's IndexSet from the input @@ -259,7 +261,8 @@ namespace LinearAlgebra */ void import(const EpetraWrappers::Vector &epetra_vec, VectorOperation::values operation, - std_cxx11::shared_ptr communication_pattern = NULL); + std_cxx11::shared_ptr communication_pattern = + std_cxx11::shared_ptr ()); #endif /**