]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use a simpler way to initialize default arguments. 13009/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 30 Nov 2021 03:24:45 +0000 (20:24 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 30 Nov 2021 03:24:45 +0000 (20:24 -0700)
include/deal.II/numerics/data_out_dof_data.h

index e66bc5208c820d64a2adda528ba785aa44ace15d..e36f78a2b7065a374f9a781aad5b9df1e8f1f5a3 100644 (file)
@@ -729,8 +729,7 @@ public:
     const std::vector<std::string> &names,
     const DataVectorType            type = type_automatic,
     const std::vector<DataComponentInterpretation::DataComponentInterpretation>
-      &data_component_interpretation = std::vector<
-        DataComponentInterpretation::DataComponentInterpretation>());
+      &data_component_interpretation = {});
 
   /**
    * This function is an abbreviation to the above one (see there for a
@@ -755,8 +754,7 @@ public:
     const std::string &  name,
     const DataVectorType type = type_automatic,
     const std::vector<DataComponentInterpretation::DataComponentInterpretation>
-      &data_component_interpretation = std::vector<
-        DataComponentInterpretation::DataComponentInterpretation>());
+      &data_component_interpretation = {});
 
   /**
    * This function is an extension of the above one (see there for a
@@ -780,8 +778,7 @@ public:
     const VectorType &               data,
     const std::vector<std::string> & names,
     const std::vector<DataComponentInterpretation::DataComponentInterpretation>
-      &data_component_interpretation = std::vector<
-        DataComponentInterpretation::DataComponentInterpretation>());
+      &data_component_interpretation = {});
 
 
   /**
@@ -795,8 +792,7 @@ public:
     const VectorType &               data,
     const std::string &              name,
     const std::vector<DataComponentInterpretation::DataComponentInterpretation>
-      &data_component_interpretation = std::vector<
-        DataComponentInterpretation::DataComponentInterpretation>());
+      &data_component_interpretation = {});
 
   /**
    * This function is an alternative to the above ones, allowing the output of

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.