| 3444 | } |
| 3445 | |
| 3446 | void Value::releasePayload() { |
| 3447 | switch (type()) { |
| 3448 | case nullValue: |
| 3449 | case intValue: |
| 3450 | case uintValue: |
| 3451 | case realValue: |
| 3452 | case booleanValue: |
| 3453 | break; |
| 3454 | case stringValue: |
| 3455 | if (isAllocated()) |
| 3456 | releasePrefixedStringValue(value_.string_); |
| 3457 | break; |
| 3458 | case arrayValue: |
| 3459 | case objectValue: |
| 3460 | delete value_.map_; |
| 3461 | break; |
| 3462 | default: |
| 3463 | JSON_ASSERT_UNREACHABLE; |
| 3464 | } |
| 3465 | } |
| 3466 | |
| 3467 | void Value::dupMeta(const Value& other) { |
| 3468 | comments_ = other.comments_; |
nothing calls this directly
no test coverage detected