MCPcopy Create free account
hub / github.com/Kitware/VTK / releasePayload

Method releasePayload

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:3446–3465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3444}
3445
3446void Value::releasePayload() {
3447 switch (type()) {
3448 case nullValue:
3449 case intValue:
3450 case uintValue:
3451 case realValue:
3452 case booleanValue:
3453 break;
3454 case stringValue:
3455 if (isAllocated())
3456 releasePrefixedStringValue(value_.string_);
3457 break;
3458 case arrayValue:
3459 case objectValue:
3460 delete value_.map_;
3461 break;
3462 default:
3463 JSON_ASSERT_UNREACHABLE;
3464 }
3465}
3466
3467void Value::dupMeta(const Value& other) {
3468 comments_ = other.comments_;

Callers

nothing calls this directly

Calls 3

isAllocatedFunction · 0.85
typeEnum · 0.50

Tested by

no test coverage detected