MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / ~Value

Method ~Value

src/share/jsoncpp/jsoncpp.cpp:2933–2956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2931#endif
2932
2933Value::~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
2958Value& Value::operator=(Value other) {
2959 swap(other);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected