| 3411 | } |
| 3412 | |
| 3413 | void Value::releasePayload() { |
| 3414 | switch (type()) { |
| 3415 | case nullValue: |
| 3416 | case intValue: |
| 3417 | case uintValue: |
| 3418 | case realValue: |
| 3419 | case booleanValue: |
| 3420 | break; |
| 3421 | case stringValue: |
| 3422 | if (isAllocated()) |
| 3423 | releasePrefixedStringValue(value_.string_); |
| 3424 | break; |
| 3425 | case arrayValue: |
| 3426 | case objectValue: |
| 3427 | delete value_.map_; |
| 3428 | break; |
| 3429 | default: |
| 3430 | JSON_ASSERT_UNREACHABLE; |
| 3431 | } |
| 3432 | } |
| 3433 | |
| 3434 | void Value::dupMeta(const Value &other) { |
| 3435 | comments_ = other.comments_; |
nothing calls this directly
no test coverage detected