MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / ~Value

Method ~Value

Source/JSON/jsoncpp.cpp:2588–2610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2586}
2587
2588Value::~Value() {
2589 switch (type_) {
2590 case nullValue:
2591 case intValue:
2592 case uintValue:
2593 case realValue:
2594 case booleanValue:
2595 break;
2596 case stringValue:
2597 if (allocated_)
2598 releaseStringValue(value_.string_);
2599 break;
2600 case arrayValue:
2601 case objectValue:
2602 delete value_.map_;
2603 break;
2604 default:
2605 JSON_ASSERT_UNREACHABLE;
2606 }
2607
2608 if (comments_)
2609 delete[] comments_;
2610}
2611
2612Value& Value::operator=(const Value& other) {
2613 Value temp(other);

Callers 1

JSONValueDestructorFunction · 0.45

Calls 1

releaseStringValueFunction · 0.70

Tested by

no test coverage detected