]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a few clang-tidy complains 7480/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 27 Nov 2018 22:57:25 +0000 (23:57 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 27 Nov 2018 23:02:07 +0000 (00:02 +0100)
source/grid/grid_in.cc
source/grid/grid_out.cc

index 1261dbac8cc1eac14fa3cd1c0632b953d091bf0e..323547464403926228ca12e5525b11e6b9c8f0ef 100644 (file)
@@ -376,7 +376,7 @@ GridIn<dim, spacedim>::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;
index e6a431472fc0f1aaf7ccff2aea672d6eea8a906e..ed724e5607a34c79ebe765476eb573a03c934780 100644 (file)
@@ -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<Triangulation<3, 3> &>(tria).load_user_flags_line(flags);
     return res;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.