From: Wolfgang Bangerth Date: Fri, 9 Jul 2021 21:00:40 +0000 (-0600) Subject: Follow recommendations of clang-tidy. X-Git-Tag: v9.4.0-rc1~1116^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3f1e2eb02025c529905c128d77318fa1f169db6;p=dealii.git Follow recommendations of clang-tidy. --- 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