clarify comments

And throw instead of return null for invalid settings.
This commit is contained in:
Christopher Dunn
2015-02-10 23:03:27 -06:00
parent 7796f20eab
commit 29501c4d9f
3 changed files with 14 additions and 7 deletions

View File

@@ -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) {