| 3504 | } |
| 3505 | |
| 3506 | void Value::releasePayload() { |
| 3507 | switch (type_) { |
| 3508 | case nullValue: |
| 3509 | case intValue: |
| 3510 | case uintValue: |
| 3511 | case realValue: |
| 3512 | case booleanValue: |
| 3513 | break; |
| 3514 | case stringValue: |
| 3515 | if (allocated_) |
| 3516 | releasePrefixedStringValue(value_.string_); |
| 3517 | break; |
| 3518 | case arrayValue: |
| 3519 | case objectValue: |
| 3520 | delete value_.map_; |
| 3521 | break; |
| 3522 | default: |
| 3523 | JSON_ASSERT_UNREACHABLE; |
| 3524 | } |
| 3525 | } |
| 3526 | |
| 3527 | void Value::dupMeta(const Value& other) { |
| 3528 | if (other.comments_) { |
nothing calls this directly
no test coverage detected