Update json_value.cpp
This commit is contained in:
parent
1a2da44e06
commit
9a716e9622
@ -1398,7 +1398,7 @@ String Value::Comments::get(CommentPlacement slot) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Value::Comments::set(CommentPlacement slot, String comment) {
|
void Value::Comments::set(CommentPlacement slot, String comment) {
|
||||||
if (slot < CommentPlacement::numberOfCommentPlacement)
|
if (slot >= CommentPlacement::numberOfCommentPlacement)
|
||||||
return;
|
return;
|
||||||
if (!ptr_)
|
if (!ptr_)
|
||||||
ptr_ = std::unique_ptr<Array>(new Array());
|
ptr_ = std::unique_ptr<Array>(new Array());
|
||||||
|
Loading…
Reference in New Issue
Block a user