From: Wolfgang Bangerth Date: Thu, 3 Nov 2016 01:44:26 +0000 (-0600) Subject: Initialize a member variable. X-Git-Tag: v8.5.0-rc1~499^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=341d3f9b117b6b4e8d8912b97b0e8ee9541afaed;p=dealii.git Initialize a member variable. --- diff --git a/include/deal.II/lac/filtered_matrix.h b/include/deal.II/lac/filtered_matrix.h index b01e150579..534ae54453 100644 --- a/include/deal.II/lac/filtered_matrix.h +++ b/include/deal.II/lac/filtered_matrix.h @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 2001 - 2015 by the deal.II authors +// Copyright (C) 2001 - 2016 by the deal.II authors // // This file is part of the deal.II library. // @@ -341,7 +341,7 @@ public: */ template FilteredMatrix (const MatrixType &matrix, - bool expect_constrained_source = false); + const bool expect_constrained_source = false); /** * Copy operator. Take over matrix and constraints from the other object. @@ -359,7 +359,7 @@ public: */ template void initialize (const MatrixType &m, - bool expect_constrained_source = false); + const bool expect_constrained_source = false); /** * Delete all constraints and the matrix pointer. @@ -713,6 +713,8 @@ FilteredMatrix::initialize (const MatrixType &m, bool ecs) template inline FilteredMatrix::FilteredMatrix () + : + expect_constrained_source (false) {} @@ -733,7 +735,10 @@ template template inline FilteredMatrix:: -FilteredMatrix (const MatrixType &m, bool ecs) +FilteredMatrix (const MatrixType &m, + const bool ecs) + : + expect_constrained_source (false) { initialize (m, ecs); }