From: bangerth Date: Mon, 20 Aug 2007 21:15:10 +0000 (+0000) Subject: Add a default constructor to DataOutBase::GmvFlags to avoid warnings about uninitiali... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50805c9a008a4a2a1fb58b9056089bb0da41bb21;p=dealii-svn.git Add a default constructor to DataOutBase::GmvFlags to avoid warnings about uninitialized objects when using such variables. The class has no meaningful members, so it doesn't matter, but it avoids the compiler warning. git-svn-id: https://svn.dealii.org/trunk@14990 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 abcfc86564..1337080818 100644 --- a/deal.II/base/include/base/data_out_base.h +++ b/deal.II/base/include/base/data_out_base.h @@ -1060,6 +1060,11 @@ class DataOutBase int dummy; public: + /** + * Default constructor. + */ + GmvFlags (); + /** * 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 c419acb902..72ea137964 100644 --- a/deal.II/base/source/data_out_base.cc +++ b/deal.II/base/source/data_out_base.cc @@ -672,6 +672,11 @@ DataOutBase::EpsFlags::memory_consumption () const +DataOutBase::GmvFlags::GmvFlags () +{} + + + void DataOutBase::GmvFlags::declare_parameters (ParameterHandler &/*prm*/) {}