aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/JSON.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-01-28 13:59:26 +0100
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2023-01-28 20:49:32 +0100
commitdce43d4f7f0f51f2006659171bca9585b52e79fe (patch)
treec71bd641d8797e1c641866fc1ea0e6a95f1e399d /libqpdf/JSON.cc
parent4c914aee96c419cf4a3b15014125c537c056d0df (diff)
downloadqpdf-dce43d4f7f0f51f2006659171bca9585b52e79fe.tar.zst
Refactor JSON::JSON_string::write
Diffstat (limited to 'libqpdf/JSON.cc')
-rw-r--r--libqpdf/JSON.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/JSON.cc b/libqpdf/JSON.cc
index 0dc44d7f..fa523dc1 100644
--- a/libqpdf/JSON.cc
+++ b/libqpdf/JSON.cc
@@ -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) :