From 341d3f9b117b6b4e8d8912b97b0e8ee9541afaed Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 2 Nov 2016 19:44:26 -0600 Subject: [PATCH] Initialize a member variable. --- include/deal.II/lac/filtered_matrix.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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); } -- 2.39.5