From: Martin Kronbichler Date: Thu, 29 Oct 2020 10:05:32 +0000 (+0100) Subject: Remove another capture by reference X-Git-Tag: v9.3.0-rc1~954^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ea5091a71d215c6e83cdefcfbf308ff09edaf38;p=dealii.git Remove another capture by reference --- diff --git a/source/lac/dynamic_sparsity_pattern.cc b/source/lac/dynamic_sparsity_pattern.cc index 4a91985937..4a3a9e4202 100644 --- a/source/lac/dynamic_sparsity_pattern.cc +++ b/source/lac/dynamic_sparsity_pattern.cc @@ -622,7 +622,7 @@ DynamicSparsityPattern::nonempty_rows() const std::vector 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);