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

Method releasePayload

external/jsoncpp/jsoncpp.cpp:3413–3432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3411}
3412
3413void Value::releasePayload() {
3414 switch (type()) {
3415 case nullValue:
3416 case intValue:
3417 case uintValue:
3418 case realValue:
3419 case booleanValue:
3420 break;
3421 case stringValue:
3422 if (isAllocated())
3423 releasePrefixedStringValue(value_.string_);
3424 break;
3425 case arrayValue:
3426 case objectValue:
3427 delete value_.map_;
3428 break;
3429 default:
3430 JSON_ASSERT_UNREACHABLE;
3431 }
3432}
3433
3434void Value::dupMeta(const Value &other) {
3435 comments_ = other.comments_;

Callers

nothing calls this directly

Calls 2

isAllocatedFunction · 0.85

Tested by

no test coverage detected