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

Method set

runtime/3rdparty/jsoncpp/jsoncpp.cpp:4121–4128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4119}
4120
4121void Value::Comments::set(CommentPlacement slot, String comment)
4122{
4123 if (slot >= CommentPlacement::numberOfCommentPlacement)
4124 return;
4125 if (!ptr_)
4126 ptr_ = std::unique_ptr<Array>(new Array());
4127 (*ptr_)[slot] = std::move(comment);
4128}
4129
4130void Value::setComment(String comment, CommentPlacement placement)
4131{

Callers 2

setCommentMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected