From c2a9ee8e81d6eb29906d0da40b24deb2c45e8a9d Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 27 Nov 2018 23:57:25 +0100 Subject: [PATCH] Fix a few clang-tidy complains --- source/grid/grid_in.cc | 2 +- source/grid/grid_out.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5