]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add virtual destructor.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 22 Feb 2005 07:31:48 +0000 (07:31 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 22 Feb 2005 07:31:48 +0000 (07:31 +0000)
git-svn-id: https://svn.dealii.org/trunk@9905 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/data_out_base.h
deal.II/base/source/data_out_base.cc
deal.II/doc/news/changes.html

index 5bcafb71c2199d49c50eebb09d9866b513dd6ffc..496f26f569b4cb57172cc89a5c281414e430fc85 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -1722,6 +1722,13 @@ class DataOutInterface : private DataOutBase
                                            */
          vtk };
 
+                                     /**
+                                      * Destructor. Does nothing, but is
+                                      * declared virtual since this class has
+                                      * virtual functions.
+                                      */
+    virtual ~DataOutInterface ();
+
                                     /**
                                      * Obtain data through the
                                      * <tt>get_patches</tt> function and
index 6ae0627a94dcdde43cee4c9da8b0883ec7403046..077e346dde465591170e8800ae744cf763036077 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -3966,6 +3966,13 @@ DataOutBase::write_gmv_reorder_data_vectors (const std::vector<Patch<dim,spacedi
 /* --------------------------- class DataOutInterface ---------------------- */
 
 
+template <int dim, int spacedim>
+DataOutInterface<dim,spacedim>::~DataOutInterface ()
+{}
+
+
+
+
 template <int dim, int spacedim>
 void DataOutInterface<dim,spacedim>::write_dx (std::ostream &out) const 
 {
index 129ccbdf5683c3e23c35997aa540b41d0348687f..729d2ef8b04cecf2c319636610ba4022727da392 100644 (file)
@@ -51,7 +51,8 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK
        Fixed: The class <code>MultipleParameterLoop::UserClass</code> had only
        virtual abstract functions but no virtual destructor. This caused
        warnings with some compilers, and is generally bad practice
-       anyway. This is now fixed.
+       anyway. This is now fixed. The same holds with respect to the class
+       <code>DataOutInterface</code>.
        <br> 
        (WB, 2005/02/20)
        </p>

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.