Reflect empty string

MarkedString::value is a mandatory field and the client may complain if `value` does not exist.
This commit is contained in:
Fangrui Song 2017-12-07 16:44:34 -08:00 committed by Jacob Dufault
parent 60febe6e9d
commit c6135f5de0

View File

@ -67,8 +67,6 @@ void Reflect(Writer& visitor, std::string& value) {
// ReflectMember
void ReflectMember(Writer& visitor, const char* name, std::string& value) {
if (value.empty())
return;
visitor.Key(name);
Reflect(visitor, value);
}