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

Method dupMeta

cpp/cppsdk/jsoncpp.cpp:3527–3541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3525}
3526
3527void Value::dupMeta(const Value& other) {
3528 if (other.comments_) {
3529 comments_ = new CommentInfo[numberOfCommentPlacement];
3530 for (int comment = 0; comment < numberOfCommentPlacement; ++comment) {
3531 const CommentInfo& otherComment = other.comments_[comment];
3532 if (otherComment.comment_)
3533 comments_[comment].setComment(otherComment.comment_,
3534 strlen(otherComment.comment_));
3535 }
3536 } else {
3537 comments_ = 0;
3538 }
3539 start_ = other.start_;
3540 limit_ = other.limit_;
3541}
3542
3543// Access an object value by name, create a null member if it does not exist.
3544// @pre Type of '*this' is object or null.

Callers

nothing calls this directly

Calls 1

setCommentMethod · 0.80

Tested by

no test coverage detected