Sets the 0-terminated C string this MyString object represents.
| 49 | // Sets the 0-terminated C string this MyString object |
| 50 | // represents. |
| 51 | void MyString::Set(const char* a_c_string) { |
| 52 | // Makes sure this works when c_string == c_string_ |
| 53 | const char* const temp = MyString::CloneCString(a_c_string); |
| 54 | delete[] c_string_; |
| 55 | c_string_ = temp; |
| 56 | } |
no outgoing calls