From: Wolfgang Bangerth Date: Tue, 22 Feb 2005 07:31:48 +0000 (+0000) Subject: Add virtual destructor. X-Git-Tag: v8.0.0~14585 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6b52a7e014c3f761c5e41f1e30fbd54a980b3ea;p=dealii.git Add virtual destructor. git-svn-id: https://svn.dealii.org/trunk@9905 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 5bcafb71c2..496f26f569 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) 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 * get_patches function and diff --git a/deal.II/base/source/data_out_base.cc b/deal.II/base/source/data_out_base.cc index 6ae0627a94..077e346dde 100644 --- a/deal.II/base/source/data_out_base.cc +++ b/deal.II/base/source/data_out_base.cc @@ -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 +DataOutInterface::~DataOutInterface () +{} + + + + template void DataOutInterface::write_dx (std::ostream &out) const { diff --git a/deal.II/doc/news/changes.html b/deal.II/doc/news/changes.html index 129ccbdf56..729d2ef8b0 100644 --- a/deal.II/doc/news/changes.html +++ b/deal.II/doc/news/changes.html @@ -51,7 +51,8 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK Fixed: The class MultipleParameterLoop::UserClass 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 + DataOutInterface.
(WB, 2005/02/20)