| 2963 | #endif |
| 2964 | |
| 2965 | Value::~Value() { |
| 2966 | switch (type_) { |
| 2967 | case nullValue: |
| 2968 | case intValue: |
| 2969 | case uintValue: |
| 2970 | case realValue: |
| 2971 | case booleanValue: |
| 2972 | break; |
| 2973 | case stringValue: |
| 2974 | if (allocated_) |
| 2975 | releasePrefixedStringValue(value_.string_); |
| 2976 | break; |
| 2977 | case arrayValue: |
| 2978 | case objectValue: |
| 2979 | delete value_.map_; |
| 2980 | break; |
| 2981 | default: |
| 2982 | JSON_ASSERT_UNREACHABLE; |
| 2983 | } |
| 2984 | |
| 2985 | delete[] comments_; |
| 2986 | |
| 2987 | value_.uint_ = 0; |
| 2988 | } |
| 2989 | |
| 2990 | Value& Value::operator=(Value other) { |
| 2991 | swap(other); |
nothing calls this directly
no test coverage detected