aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Integer.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2024-02-17 20:15:48 +0100
committerJay Berkenbilt <ejb@ql.org>2024-02-17 20:15:48 +0100
commite362bce8e86f4912eaa008bac06f9e2c19b72d3f (patch)
tree42fcd9eed699714f98ddee634763e4d670a2652b /libqpdf/QPDF_Integer.cc
parent5a29b7f9dd353c7baf2ca738bd2a56582a6525ea (diff)
parent413aba5bf2ef239d3abf024de3c819e153171035 (diff)
downloadqpdf-e362bce8e86f4912eaa008bac06f9e2c19b72d3f.tar.zst
Merge branch 'jw' from #1146 into work
Diffstat (limited to 'libqpdf/QPDF_Integer.cc')
-rw-r--r--libqpdf/QPDF_Integer.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/libqpdf/QPDF_Integer.cc b/libqpdf/QPDF_Integer.cc
index 716a11e0..aa0437a1 100644
--- a/libqpdf/QPDF_Integer.cc
+++ b/libqpdf/QPDF_Integer.cc
@@ -1,5 +1,6 @@
#include <qpdf/QPDF_Integer.hh>
+#include <qpdf/JSON_writer.hh>
#include <qpdf/QUtil.hh>
QPDF_Integer::QPDF_Integer(long long val) :
@@ -26,10 +27,10 @@ QPDF_Integer::unparse()
return std::to_string(this->val);
}
-JSON
-QPDF_Integer::getJSON(int json_version)
+void
+QPDF_Integer::writeJSON(int json_version, JSON::Writer& p)
{
- return JSON::makeInt(this->val);
+ p << std::to_string(this->val);
}
long long