From: David Wells Date: Sat, 9 May 2020 19:31:43 +0000 (-0400) Subject: cppcheck: move some things into the initializer list. X-Git-Tag: v9.2.0-rc1~60^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbd5383ebbe074f110b2d3d3950f71d0c2f847fd;p=dealii.git cppcheck: move some things into the initializer list. --- diff --git a/include/deal.II/lac/precondition_block.h b/include/deal.II/lac/precondition_block.h index 8254885007..4fab3fa7ad 100644 --- a/include/deal.II/lac/precondition_block.h +++ b/include/deal.II/lac/precondition_block.h @@ -939,12 +939,11 @@ inline PreconditionBlockJacobi::const_iterator:: const PreconditionBlockJacobi *matrix, const size_type row) : matrix(matrix) + , bs(matrix->block_size()) + , a_block(row / bs) , b_iterator(&matrix->inverse(0), 0, 0) , b_end(&matrix->inverse(0), 0, 0) { - bs = matrix->block_size(); - a_block = row / bs; - // This is the end accessor, which // does not have a valid block. if (a_block == matrix->size())