| 2737 | #endif |
| 2738 | |
| 2739 | Value::CZString::~CZString() { |
| 2740 | if (cstr_ && storage_.policy_ == duplicate) { |
| 2741 | releaseStringValue(const_cast<char*>(cstr_), |
| 2742 | storage_.length_ + 1u); // +1 for null terminating |
| 2743 | // character for sake of |
| 2744 | // completeness but not actually |
| 2745 | // necessary |
| 2746 | } |
| 2747 | } |
| 2748 | |
| 2749 | void Value::CZString::swap(CZString& other) { |
| 2750 | std::swap(cstr_, other.cstr_); |
nothing calls this directly
no test coverage detected