From b3f1e2eb02025c529905c128d77318fa1f169db6 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 9 Jul 2021 15:00:40 -0600 Subject: [PATCH] Follow recommendations of clang-tidy. --- source/base/data_out_base.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 0eefce3224..9fbae84aed 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -5466,7 +5466,7 @@ namespace DataOutBase // quote characters as this would make the VTU file invalid XML and // probably lead to all sorts of difficult error messages. Other than that, // trust the user that whatever they provide makes sense somehow. - for (const auto unit : flags.physical_units) + for (const auto &unit : flags.physical_units) Assert( unit.second.find('\"') == std::string::npos, ExcMessage( @@ -5906,7 +5906,7 @@ namespace DataOutBase // quote characters as this would make the VTU file invalid XML and // probably lead to all sorts of difficult error messages. Other than that, // trust the user that whatever they provide makes sense somehow. - for (const auto unit : flags.physical_units) + for (const auto &unit : flags.physical_units) Assert( unit.second.find('\"') == std::string::npos, ExcMessage( @@ -5966,7 +5966,7 @@ namespace DataOutBase // underscores unless a vector name has been specified out << " (nonscalar_data_range); + const std::string &name = std::get<2>(nonscalar_data_range); if (!name.empty()) out << name; else -- 2.39.5