MCPcopy Create free account
hub / github.com/Samsung/ONE / releasePayload

Method releasePayload

runtime/3rdparty/jsoncpp/jsoncpp.cpp:3702–3723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3700}
3701
3702void Value::releasePayload()
3703{
3704 switch (type())
3705 {
3706 case nullValue:
3707 case intValue:
3708 case uintValue:
3709 case realValue:
3710 case booleanValue:
3711 break;
3712 case stringValue:
3713 if (isAllocated())
3714 releasePrefixedStringValue(value_.string_);
3715 break;
3716 case arrayValue:
3717 case objectValue:
3718 delete value_.map_;
3719 break;
3720 default:
3721 JSON_ASSERT_UNREACHABLE;
3722 }
3723}
3724
3725void Value::dupMeta(const Value &other)
3726{

Callers

nothing calls this directly

Calls 3

isAllocatedFunction · 0.85
typeFunction · 0.50

Tested by

no test coverage detected