]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Provide constructors to avoid leaving variables uninitialized.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Mar 2010 00:55:02 +0000 (00:55 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Mar 2010 00:55:02 +0000 (00:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@20780 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/data_out_base.h
deal.II/base/source/data_out_base.cc

index ae3b24ef4fbc992dc80cfaa7fad6ddc333e87154..969300459fa1cfa5368287d4ac966827f22d32ad 100644 (file)
@@ -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
index 4f9740caa04727a4f25c9ec52c5084b6106bb8be..8e62c1eb2ba8acb25bcd617b916b43ce96abc717 100644 (file)
@@ -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*/)
 {}
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.