From e4bae2d6e608b9035b141591f6d5ecf42ac6e458 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 29 Nov 2021 20:24:45 -0700 Subject: [PATCH] Use a simpler way to initialize default arguments. --- include/deal.II/numerics/data_out_dof_data.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/include/deal.II/numerics/data_out_dof_data.h b/include/deal.II/numerics/data_out_dof_data.h index e66bc5208c..e36f78a2b7 100644 --- a/include/deal.II/numerics/data_out_dof_data.h +++ b/include/deal.II/numerics/data_out_dof_data.h @@ -729,8 +729,7 @@ public: const std::vector &names, const DataVectorType type = type_automatic, const std::vector - &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 - &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 & names, const std::vector - &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 - &data_component_interpretation = std::vector< - DataComponentInterpretation::DataComponentInterpretation>()); + &data_component_interpretation = {}); /** * This function is an alternative to the above ones, allowing the output of -- 2.39.5