]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not assign NULL to shared_ptr. 2432/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 28 Mar 2016 21:25:51 +0000 (17:25 -0400)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 28 Mar 2016 21:25:51 +0000 (17:25 -0400)
include/deal.II/lac/read_write_vector.h

index 0f55cda3bd68e335ad73d0a62de2aa6c54082c66..39b4d25a1f3824590f12c09041c5eac77295605b 100644 (file)
@@ -233,7 +233,8 @@ namespace LinearAlgebra
      */
     void import(const PETScWrappers::MPI::Vector &petsc_vec,
                 VectorOperation::values operation,
-                std_cxx11::shared_ptr<const CommunicationPatternBase> communication_pattern = NULL);
+                std_cxx11::shared_ptr<const CommunicationPatternBase> communication_pattern =
+                  std_cxx11::shared_ptr<const CommunicationPatternBase> ());
 #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<const CommunicationPatternBase> communication_pattern = NULL);
+                std_cxx11::shared_ptr<const CommunicationPatternBase> communication_pattern =
+                  std_cxx11::shared_ptr<const CommunicationPatternBase> ());
 
     /**
      * 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<const CommunicationPatternBase> communication_pattern = NULL);
+                std_cxx11::shared_ptr<const CommunicationPatternBase> communication_pattern =
+                  std_cxx11::shared_ptr<const CommunicationPatternBase> ());
 #endif
 
     /**

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.