mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-14 15:05:34 +02:00
clarify comments
And throw instead of return null for invalid settings.
This commit is contained in:
@@ -981,7 +981,7 @@ StreamWriter* StreamWriterBuilder::newStreamWriter() const
|
||||
} else if (cs_str == "None") {
|
||||
cs = CommentStyle::None;
|
||||
} else {
|
||||
return NULL;
|
||||
throw std::runtime_error("commentStyle must be 'All' or 'None'");
|
||||
}
|
||||
std::string colonSymbol = " : ";
|
||||
if (eyc) {
|
||||
|
Reference in New Issue
Block a user