| 2931 | #endif |
| 2932 | |
| 2933 | Value::~Value() { |
| 2934 | switch (type_) { |
| 2935 | case nullValue: |
| 2936 | case intValue: |
| 2937 | case uintValue: |
| 2938 | case realValue: |
| 2939 | case booleanValue: |
| 2940 | break; |
| 2941 | case stringValue: |
| 2942 | if (allocated_) |
| 2943 | releasePrefixedStringValue(value_.string_); |
| 2944 | break; |
| 2945 | case arrayValue: |
| 2946 | case objectValue: |
| 2947 | delete value_.map_; |
| 2948 | break; |
| 2949 | default: |
| 2950 | JSON_ASSERT_UNREACHABLE; |
| 2951 | } |
| 2952 | |
| 2953 | delete[] comments_; |
| 2954 | |
| 2955 | value_.uint_ = 0; |
| 2956 | } |
| 2957 | |
| 2958 | Value& Value::operator=(Value other) { |
| 2959 | swap(other); |
nothing calls this directly
no test coverage detected