From: Wolfgang Bangerth Date: Fri, 30 May 2025 17:13:38 +0000 (-0600) Subject: Do not capture 'this' where not necessary. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fbd9771dc26bfd7ce40c23e0e56b53c7d1ed475;p=dealii.git Do not capture 'this' where not necessary. --- diff --git a/include/deal.II/lac/solver_gmres.h b/include/deal.II/lac/solver_gmres.h index 29c92e61e9..337d8751e0 100644 --- a/include/deal.II/lac/solver_gmres.h +++ b/include/deal.II/lac/solver_gmres.h @@ -2293,8 +2293,7 @@ void SolverMPGMRES::solve_internal( // Krylov space sequence according to the chosen indexing strategy const auto previous_vector_index = - [this, n_preconditioners, indexing_strategy]( - unsigned int i) -> unsigned int { + [n_preconditioners, indexing_strategy](unsigned int i) -> unsigned int { // In the special case of no preconditioners we simply fall back to the // FGMRES indexing strategy. if (n_preconditioners == 0)