rm trailing newlines for *all* comments
This will make it easier to fix newlines consistently.
diff --git a/include/json/value.h b/include/json/value.h
index b274688..efc34ac 100644
--- a/include/json/value.h
+++ b/include/json/value.h
@@ -432,9 +432,11 @@
// EnumValues enumValues() const;
//# endif
- /// Comments must be //... or /* ... */
+ /// \deprecated Always pass len.
void setComment(const char* comment, CommentPlacement placement);
/// Comments must be //... or /* ... */
+ void setComment(const char* comment, size_t len, CommentPlacement placement);
+ /// Comments must be //... or /* ... */
void setComment(const std::string& comment, CommentPlacement placement);
bool hasComment(CommentPlacement placement) const;
/// Include delimiters and embedded newlines.
@@ -477,7 +479,7 @@
CommentInfo();
~CommentInfo();
- void setComment(const char* text);
+ void setComment(const char* text, size_t len);
char* comment_;
};