From: Wolfgang Bangerth Date: Wed, 10 Mar 2010 00:55:02 +0000 (+0000) Subject: Provide constructors to avoid leaving variables uninitialized. X-Git-Tag: v8.0.0~6348 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1857d8662a7ae9ded39728986a57b0c2ac625a7c;p=dealii.git Provide constructors to avoid leaving variables uninitialized. git-svn-id: https://svn.dealii.org/trunk@20780 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/data_out_base.h b/deal.II/base/include/base/data_out_base.h index ae3b24ef4f..969300459f 100644 --- a/deal.II/base/include/base/data_out_base.h +++ b/deal.II/base/include/base/data_out_base.h @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by the deal.II authors +// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -592,6 +592,11 @@ class DataOutBase int dummy; public: + /** + * Constructor. + */ + GnuplotFlags (); + /** * Declare all flags with name * and type as offered by this @@ -1281,6 +1286,11 @@ class DataOutBase int dummy; public: + /** + * Constructor. + */ + Deal_II_IntermediateFlags (); + /** * Declare all flags with name * and type as offered by this diff --git a/deal.II/base/source/data_out_base.cc b/deal.II/base/source/data_out_base.cc index 4f9740caa0..8e62c1eb2b 100644 --- a/deal.II/base/source/data_out_base.cc +++ b/deal.II/base/source/data_out_base.cc @@ -1143,6 +1143,13 @@ DataOutBase::UcdFlags::memory_consumption () const +DataOutBase::GnuplotFlags::GnuplotFlags () + : + dummy (0) +{} + + + void DataOutBase::GnuplotFlags::declare_parameters (ParameterHandler &/*prm*/) {} @@ -1525,6 +1532,13 @@ DataOutBase::VtkFlags::memory_consumption () const +DataOutBase::Deal_II_IntermediateFlags::Deal_II_IntermediateFlags () + : + dummy (0) +{} + + + void DataOutBase::Deal_II_IntermediateFlags::declare_parameters (ParameterHandler &/*prm*/) {}