MCPcopy Create free account
hub / github.com/PlayFab/gsdk / releasePayload

Method releasePayload

cpp/cppsdk/jsoncpp.cpp:3506–3525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3504}
3505
3506void Value::releasePayload() {
3507 switch (type_) {
3508 case nullValue:
3509 case intValue:
3510 case uintValue:
3511 case realValue:
3512 case booleanValue:
3513 break;
3514 case stringValue:
3515 if (allocated_)
3516 releasePrefixedStringValue(value_.string_);
3517 break;
3518 case arrayValue:
3519 case objectValue:
3520 delete value_.map_;
3521 break;
3522 default:
3523 JSON_ASSERT_UNREACHABLE;
3524 }
3525}
3526
3527void Value::dupMeta(const Value& other) {
3528 if (other.comments_) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected