From 6982ea135fd88bb0c0d1c9016c430650b0c88b51 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt <Ansgar.Burchardt@tu-dresden.de> Date: Thu, 18 Jun 2020 00:08:27 +0200 Subject: [PATCH] canignore.hh: use default member initializer and defaulted con- and destructor --- dune/solvers/common/canignore.hh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/dune/solvers/common/canignore.hh b/dune/solvers/common/canignore.hh index eb8b4a7f..96a5ade5 100644 --- a/dune/solvers/common/canignore.hh +++ b/dune/solvers/common/canignore.hh @@ -18,9 +18,7 @@ public: /** * \brief Default constructor */ - CanIgnore() - : ignoreNodes_(nullptr) - {} + CanIgnore() = default; /** * \brief Constructor from bit vector @@ -36,8 +34,7 @@ public: * * Does NOT delete the bitfield! */ - ~CanIgnore() - {} + ~CanIgnore() = default; /** * \brief Set bit vector @@ -68,7 +65,7 @@ public: /** * \brief A flag for each degree of freedom stating whether the dof should be ignored by the solver */ - const BitVectorType* ignoreNodes_; + const BitVectorType* ignoreNodes_ = nullptr; }; -- GitLab