diff options
Diffstat (limited to 'libqpdf/QPDF_Integer.cc')
-rw-r--r-- | libqpdf/QPDF_Integer.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libqpdf/QPDF_Integer.cc b/libqpdf/QPDF_Integer.cc index 716a11e0..d65b3478 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) : @@ -32,6 +33,12 @@ QPDF_Integer::getJSON(int json_version) return JSON::makeInt(this->val); } +void +QPDF_Integer::writeJSON(int json_version, JSON::Writer& p) +{ + p << std::to_string(this->val); +} + long long QPDF_Integer::getVal() const { |