File tree 2 files changed +2
-1
lines changed 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); // {}
512
512
// # endif
513
513
514
514
// / \deprecated Always pass len.
515
+ JSONCPP_DEPRECATED (" Use setComment(std::string const&) instead." )
515
516
void setComment (const char * comment, CommentPlacement placement);
516
517
// / Comments must be //... or /* ... */
517
518
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) {
1542
1542
1543
1543
JSONTEST_FIXTURE (ValueTest, CommentBefore) {
1544
1544
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);
1546
1546
Json::StreamWriterBuilder wbuilder;
1547
1547
wbuilder.settings_ [" commentStyle" ] = " All" ;
1548
1548
{
You can’t perform that action at this time.
0 commit comments