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