From: Wolfgang Bangerth Date: Wed, 23 Aug 2023 02:07:48 +0000 (-0600) Subject: Use a delegating constructor. X-Git-Tag: relicensing~560^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3dc646280a5c138e2d8313738767117e9ffe5b0;p=dealii.git Use a delegating constructor. --- diff --git a/include/deal.II/lac/affine_constraints.h b/include/deal.II/lac/affine_constraints.h index 8c1036bcb9..745130c139 100644 --- a/include/deal.II/lac/affine_constraints.h +++ b/include/deal.II/lac/affine_constraints.h @@ -2038,15 +2038,8 @@ private: template inline AffineConstraints::AffineConstraints() - : lines() - , local_lines() - , sorted(false) -{ - // make sure the IndexSet is compressed. Otherwise this can lead to crashes - // that are hard to find (only happen in release mode). - // see tests/mpi/affine_constraints_crash_01 - local_lines.compress(); -} + : AffineConstraints(IndexSet()) +{}