Changeset 1225 in Sophya for trunk/SophyaLib/BaseTools/mutyv.cc
- Timestamp:
- Oct 11, 2000, 7:27:23 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/mutyv.cc
r1157 r1225 70 70 { 71 71 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 } 74 76 return(*this); 75 77 } … … 79 81 { 80 82 typ = 'S'; 81 strv = new string(s); 83 if (strv) *strv = s; 84 else strv = new string(s); 82 85 mutyv_decodestr(s, dv, dv_im); 83 86 iv = (int_8)dv; … … 89 92 { 90 93 typ = 'S'; 91 strv = new string(s); 94 if (strv) *strv = s; 95 else strv = new string(s); 92 96 mutyv_decodestr(s.c_str(), dv, dv_im); 93 97 iv = (int_8)dv;
Note:
See TracChangeset
for help on using the changeset viewer.