MCPcopy Create free account
hub / github.com/Illumina/paragraph / ~Value

Method ~Value

external/jsoncpp/jsoncpp.cpp:2965–2988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2963#endif
2964
2965Value::~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
2990Value& Value::operator=(Value other) {
2991 swap(other);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected