From 2ef0c4ee2667c6336f28795d4ae9d5d53a6e4bb5 Mon Sep 17 00:00:00 2001 From: nadir Date: Wed, 17 Sep 2003 09:40:36 +0000 Subject: [PATCH] correct small bug due to class destructor !! --- src/MEDMEM/MEDMEM_DriversDef.cxx | 36 ++++++++++++++++---------------- src/MEDMEM/MEDMEM_DriversDef.hxx | 6 +++--- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/MEDMEM/MEDMEM_DriversDef.cxx b/src/MEDMEM/MEDMEM_DriversDef.cxx index 3eb13e685..da6b09546 100644 --- a/src/MEDMEM/MEDMEM_DriversDef.cxx +++ b/src/MEDMEM/MEDMEM_DriversDef.cxx @@ -28,12 +28,12 @@ GEO_NAME::GEO_NAME() : map() assert( table.find( (int)MED_PYRA13 ) != table.end() ) ; } -GEO_NAME::~GEO_NAME() -{ - MESSAGE(" destructor GEO_NAME::~GEO_NAME() "<< size() ); - clear(); - MESSAGE(" end of destructor GEO_NAME::~GEO_NAME() "<< size() ); -} +// GEO_NAME::~GEO_NAME() +// { +// MESSAGE(" destructor GEO_NAME::~GEO_NAME() "<< size() ); +// // clear(); +// MESSAGE(" end of destructor GEO_NAME::~GEO_NAME() "<< size() ); +// } string & GEO_NAME::operator[]( const med_geometrie_element &c ) const { @@ -55,12 +55,12 @@ ENT_NAME::ENT_NAME() : map() table[(int)MED_NOEUD ] = "MED_NOEUD"; } -ENT_NAME::~ENT_NAME() -{ - MESSAGE(" destructor ENT_NAME::~ENT_NAME() "<< size() ); - clear(); - MESSAGE(" end of destructor ENT_NAME::~ENT_NAME() "<< size() ); -} +// ENT_NAME::~ENT_NAME() +// { +// MESSAGE(" destructor ENT_NAME::~ENT_NAME() "<< size() ); +// // clear(); +// MESSAGE(" end of destructor ENT_NAME::~ENT_NAME() "<< size() ); +// } string & ENT_NAME::operator[]( const med_entite_maillage &c ) const { @@ -126,12 +126,12 @@ MESH_ENTITIES::MESH_ENTITIES () : map >() } -MESH_ENTITIES::~MESH_ENTITIES() -{ - MESSAGE(" destructor MESH_ENTITIES::~MESH_ENTITIES() "<< size() ); - clear(); - MESSAGE(" end of destructor MESH_ENTITIES::~MESH_ENTITIES() "<< size() ); -} +// MESH_ENTITIES::~MESH_ENTITIES() +// { +// MESSAGE(" destructor MESH_ENTITIES::~MESH_ENTITIES() "<< size() ); +// // clear(); +// MESSAGE(" end of destructor MESH_ENTITIES::~MESH_ENTITIES() "<< size() ); +// } const list & MESH_ENTITIES::operator[]( const med_entite_maillage &c ) const { diff --git a/src/MEDMEM/MEDMEM_DriversDef.hxx b/src/MEDMEM/MEDMEM_DriversDef.hxx index c058d546e..c26be1766 100644 --- a/src/MEDMEM/MEDMEM_DriversDef.hxx +++ b/src/MEDMEM/MEDMEM_DriversDef.hxx @@ -28,7 +28,7 @@ class GEO_NAME : public map public : GEO_NAME(); - ~GEO_NAME(); + // ~GEO_NAME(); string & operator[]( const MED_FR::med_geometrie_element &c ) const; } ; @@ -52,7 +52,7 @@ class ENT_NAME : public map public : ENT_NAME (); - ~ENT_NAME(); + // ~ENT_NAME(); string & operator[]( const MED_FR::med_entite_maillage &c ) const; } ; @@ -77,7 +77,7 @@ class MESH_ENTITIES : public map public : MESH_ENTITIES (); - ~MESH_ENTITIES(); + // ~MESH_ENTITIES(); const list & operator[]( const MED_FR::med_entite_maillage &c ) const; private: -- 2.39.2