Salome HOME
Reverting to previous impl. of ICoCoField for compatibility with Cathare.
[modules/med.git] / src / ParaMEDMEM / ICoCoField.cxx
index 3db974ef66d22323f0b002022e8b218b2ba5896f..38d58e7f6f281f939e1dc8cf5bddd41699f5d431 100644 (file)
 using namespace ICoCo;
 using std::string;
 
-Field::Field()
-{
+Field::Field() {
+  _name=new string;
 }
 
-Field::~Field()
-{
+Field::~Field() {
+  delete _name;
 }
 
-void Field::setName(const string& name)
-{
-  _name=name;
+void Field::setName(const string& name) {
+  *_name=name;
 }
 
-const string& Field::getName() const
-{
-  return _name;
+const string& Field::getName() const {
+  return *_name;
 }
 
-const char *Field::getCharName() const
-{
-  return _name.c_str();
+const char* Field::getCharName() const {
+  return _name->c_str();
 }