From 5ea5091a71d215c6e83cdefcfbf308ff09edaf38 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Thu, 29 Oct 2020 11:05:32 +0100 Subject: [PATCH] Remove another capture by reference --- source/lac/dynamic_sparsity_pattern.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5