Return to String.cpp CVS log | Up to [Pegasus] / pegasus / src / Pegasus / Common |
version 1.80, 2003/09/26 17:52:18 | version 1.81, 2003/10/02 19:10:27 | ||
---|---|---|---|
|
| ||
CString& CString::operator=(const CString& cstr) | CString& CString::operator=(const CString& cstr) | ||
{ | { | ||
if (_rep) | |||
{ | |||
delete [] (char*)_rep; | |||
_rep = 0; | |||
} | |||
_rep = (char*)new char[strlen((char*)cstr._rep)+1]; | _rep = (char*)new char[strlen((char*)cstr._rep)+1]; | ||
strcpy((char*)_rep, (char*)cstr._rep); | strcpy((char*)_rep, (char*)cstr._rep); | ||
return *this; | return *this; |
|
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |