Changeset 1225 in Sophya for trunk/SophyaLib/BaseTools/mutyv.cc


Ignore:
Timestamp:
Oct 11, 2000, 7:27:23 PM (25 years ago)
Author:
ansari
Message:

Ajout de datatype.cc .h , correction ds MuTyV et DVList - CMV+Reza 11/10/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/mutyv.cc

    r1157 r1225  
    7070{
    7171  typ = a.typ;  iv = a.iv;  dv = a.dv;  dv_im = a.dv_im;
    72   if (typ == 'S')  strv = new string(*(a.strv));
    73   else strv = NULL;
     72  if (typ == 'S')  {
     73    if (strv) *strv = *(a.strv); 
     74    else strv = new string(*(a.strv));
     75  }
    7476  return(*this);
    7577}
     
    7981{
    8082  typ = 'S';
    81   strv = new string(s);
     83  if (strv) *strv = s; 
     84  else strv = new string(s);
    8285  mutyv_decodestr(s, dv, dv_im);
    8386  iv = (int_8)dv;
     
    8992{
    9093  typ = 'S';
    91   strv = new string(s);
     94  if (strv) *strv = s; 
     95  else strv = new string(s);
    9296  mutyv_decodestr(s.c_str(), dv, dv_im);
    9397  iv = (int_8)dv;
Note: See TracChangeset for help on using the changeset viewer.