| 2653 | } |
| 2654 | |
| 2655 | Value::CZString::~CZString() { |
| 2656 | if (cstr_ && storage_.policy_ == duplicate) { |
| 2657 | releaseStringValue(const_cast<char *>(cstr_), |
| 2658 | storage_.length_ + 1u); // +1 for null terminating |
| 2659 | // character for sake of |
| 2660 | // completeness but not actually |
| 2661 | // necessary |
| 2662 | } |
| 2663 | } |
| 2664 | |
| 2665 | void Value::CZString::swap(CZString &other) { |
| 2666 | std::swap(cstr_, other.cstr_); |
nothing calls this directly
no test coverage detected