This commit is contained in:
Drew Noakes 2015-02-02 09:28:35 +00:00
parent 3cfd675163
commit 8b1bd5b485

View File

@ -19,7 +19,7 @@ protected:
void Serialize(Writer& writer) const {
// This base class just write out name-value pairs, without wrapping within an object.
writer.String("name");
writer.String(name_.c_str(), (SizeType)name_.length()); // Suppling length of string is faster.
writer.String(name_.c_str(), (SizeType)name_.length()); // Supplying length of string is faster.
writer.String("age");
writer.Uint(age_);