| 569 | // -- INLINE INCLUDES -- |
| 570 | |
| 571 | void cString::CopyOnWrite() |
| 572 | { |
| 573 | if (value->RefCount() != 1) { // if it is shared |
| 574 | value = Apto::SmartPtr<cStringData, Apto::InternalRCObject>(new cStringData(*value)); // make own copy of value |
| 575 | } |
| 576 | } |
| 577 | |
| 578 | cString::cCharProxy & cString::cCharProxy::operator= (char c){ // lvalue |
| 579 | string.CopyOnWrite(); |
no outgoing calls
no test coverage detected