Refactor JSON::JSON_string::write

This commit is contained in:
m-holger 2023-01-28 12:59:26 +00:00 committed by Jay Berkenbilt
parent 4c914aee96
commit dce43d4f7f
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ JSON::JSON_string::JSON_string(std::string const& utf8) :
void
JSON::JSON_string::write(Pipeline* p, size_t) const
{
*p << "\"" << encoded << "\"";
*p << std::string("\"") + encoded + "\"";
}
JSON::JSON_number::JSON_number(long long value) :