From 5c90b89afc7835bf48cc1a61980191edf15a80d9 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Mon, 28 Mar 2016 17:25:51 -0400 Subject: [PATCH] Do not assign NULL to shared_ptr. --- include/deal.II/lac/read_write_vector.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 /** -- 2.39.5