File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -512,6 +512,7 @@ Json::Value obj_value(Json::objectValue); // {}
512512 // # endif
513513
514514 // / \deprecated Always pass len.
515+ JSONCPP_DEPRECATED (" Use setComment(std::string const&) instead." )
515516 void setComment (const char * comment, CommentPlacement placement);
516517 // / Comments must be //... or /* ... */
517518 void setComment (const char * comment, size_t len, CommentPlacement placement);
Original file line number Diff line number Diff line change @@ -1542,7 +1542,7 @@ JSONTEST_FIXTURE(ValueTest, StaticString) {
15421542
15431543JSONTEST_FIXTURE (ValueTest, CommentBefore) {
15441544 Json::Value val; // fill val
1545- val.setComment (" // this comment should appear before" , Json::commentBefore);
1545+ val.setComment (std::string ( " // this comment should appear before" ) , Json::commentBefore);
15461546 Json::StreamWriterBuilder wbuilder;
15471547 wbuilder.settings_ [" commentStyle" ] = " All" ;
15481548 {
You can’t perform that action at this time.
0 commit comments