]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove another capture by reference
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 29 Oct 2020 10:05:32 +0000 (11:05 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 29 Oct 2020 10:06:02 +0000 (11:06 +0100)
source/lac/dynamic_sparsity_pattern.cc

index 4a9198593745d6405362686468b967d2bb509e1d..4a3a9e420287387b084c2b3f5c17f3a8392bec5a 100644 (file)
@@ -622,7 +622,7 @@ DynamicSparsityPattern::nonempty_rows() const
   std::vector<types::global_dof_index> rows;
   auto                                 line = lines.begin();
   AssertDimension(locally_stored_rows.n_elements(), lines.size());
-  for (const auto &row : locally_stored_rows)
+  for (const auto row : locally_stored_rows)
     {
       if (line->entries.size() > 0)
         rows.push_back(row);

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.