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