From dbd5383ebbe074f110b2d3d3950f71d0c2f847fd Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 9 May 2020 15:31:43 -0400 Subject: [PATCH] cppcheck: move some things into the initializer list. --- include/deal.II/lac/precondition_block.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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()) -- 2.39.5