diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-06-16 18:45:04 +0200 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-06-27 18:47:02 +0200 |
commit | f0a8178091dfc87bbf9a6751f8fedf007e8eb144 (patch) | |
tree | 9a4b3af6d96a274016f0feecbc5deecb345c5f4f /libqpdf/qpdf/QPDF_Integer.hh | |
parent | 5aa8225f493dc3c3171662fecc8a9ff5d0a16feb (diff) | |
download | qpdf-f0a8178091dfc87bbf9a6751f8fedf007e8eb144.tar.zst |
Refactor QPDFObject creation and cloning
Move responsibility for creating shared pointers to objects and cloning from QPDFObjectHandle to QPDFObject.
Diffstat (limited to 'libqpdf/qpdf/QPDF_Integer.hh')
-rw-r--r-- | libqpdf/qpdf/QPDF_Integer.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libqpdf/qpdf/QPDF_Integer.hh b/libqpdf/qpdf/QPDF_Integer.hh index 36001a14..2c17daf0 100644 --- a/libqpdf/qpdf/QPDF_Integer.hh +++ b/libqpdf/qpdf/QPDF_Integer.hh @@ -6,8 +6,9 @@ class QPDF_Integer: public QPDFObject { public: - QPDF_Integer(long long val); virtual ~QPDF_Integer() = default; + static std::shared_ptr<QPDFObject> create(long long value); + virtual std::shared_ptr<QPDFObject> shallowCopy(); virtual std::string unparse(); virtual JSON getJSON(int json_version); virtual QPDFObject::object_type_e getTypeCode() const; @@ -15,6 +16,7 @@ class QPDF_Integer: public QPDFObject long long getVal() const; private: + QPDF_Integer(long long val); long long val; }; |