Commit dce43d4f7f0f51f2006659171bca9585b52e79fe

Authored by m-holger
Committed by Jay Berkenbilt
1 parent 4c914aee

Refactor JSON::JSON_string::write

Showing 1 changed file with 1 additions and 1 deletions
libqpdf/JSON.cc
@@ -141,7 +141,7 @@ JSON::JSON_string::JSON_string(std::string const& utf8) : @@ -141,7 +141,7 @@ JSON::JSON_string::JSON_string(std::string const& utf8) :
141 void 141 void
142 JSON::JSON_string::write(Pipeline* p, size_t) const 142 JSON::JSON_string::write(Pipeline* p, size_t) const
143 { 143 {
144 - *p << "\"" << encoded << "\""; 144 + *p << std::string("\"") + encoded + "\"";
145 } 145 }
146 146
147 JSON::JSON_number::JSON_number(long long value) : 147 JSON::JSON_number::JSON_number(long long value) :