DescriptionJSONStringValueSerializer: Constructor argument must not be null.
Previously, this class would fail gracefully if given a nullptr. Now it
has undefined behaviour. Dealing with null isn't necessary as no caller
passes nullptr here, and in general, pass-by-result style functions do
not expect null pointers. Dealing with nullptr makes my follow-up work
messy, so I am just removing it.
Also, moved constructor implementation to .cc file, and properly
documented the lifetime constraints on |json_string|.
BUG=455068
Committed: https://crrev.com/4ea5490a5e7b248389249756f132403b61a6944a
Cr-Commit-Position: refs/heads/master@{#314703}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|