From: Daniel Arndt Date: Tue, 27 Nov 2018 22:57:25 +0000 (+0100) Subject: Fix a few clang-tidy complains X-Git-Tag: v9.1.0-rc1~526^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2a9ee8e81d6eb29906d0da40b24deb2c45e8a9d;p=dealii.git Fix a few clang-tidy complains --- diff --git a/source/grid/grid_in.cc b/source/grid/grid_in.cc index 1261dbac8c..3235474644 100644 --- a/source/grid/grid_in.cc +++ b/source/grid/grid_in.cc @@ -376,7 +376,7 @@ GridIn::read_vtk(std::istream &in) // keyword std::string set = ""; in >> keyword; - for (auto set_cmp : data_sets) + for (const auto &set_cmp : data_sets) if (keyword == set_cmp) { set = keyword; diff --git a/source/grid/grid_out.cc b/source/grid/grid_out.cc index e6a431472f..ed724e5607 100644 --- a/source/grid/grid_out.cc +++ b/source/grid/grid_out.cc @@ -2960,7 +2960,7 @@ namespace if (line->manifold_id() != numbers::flat_manifold_id || (line->boundary_id() != 0 && line->boundary_id() != numbers::invalid_boundary_id)) - res.push_back(line); + res.emplace_back(line); } const_cast &>(tria).load_user_flags_line(flags); return res;