diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-09-27 13:40:39 +0200 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-11-19 20:10:42 +0100 |
commit | 6350cf16e622d12ec2f68d0aa39132731dc7c73f (patch) | |
tree | 1b79f1a330f095c51efc63b081fae26849cb1530 /libqpdf/qpdf/QPDFValue.hh | |
parent | 3a86b893f710453ba935903d68200a7bee4cbad2 (diff) | |
download | qpdf-6350cf16e622d12ec2f68d0aa39132731dc7c73f.tar.zst |
Remove QPDF_Stream::offset
Diffstat (limited to 'libqpdf/qpdf/QPDFValue.hh')
-rw-r--r-- | libqpdf/qpdf/QPDFValue.hh | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/libqpdf/qpdf/QPDFValue.hh b/libqpdf/qpdf/QPDFValue.hh index 0f85f79f..17dce933 100644 --- a/libqpdf/qpdf/QPDFValue.hh +++ b/libqpdf/qpdf/QPDFValue.hh @@ -69,11 +69,8 @@ class QPDFValue } protected: - QPDFValue() : - type_code(::ot_uninitialized), - type_name("uninitialized") - { - } + QPDFValue() = default; + QPDFValue(qpdf_object_type_e type_code, char const* type_name) : type_code(type_code), type_name(type_name) @@ -97,13 +94,14 @@ class QPDFValue QPDFValue(QPDFValue const&) = delete; QPDFValue& operator=(QPDFValue const&) = delete; std::string object_description; - qpdf_offset_t parsed_offset{-1}; - const qpdf_object_type_e type_code; - char const* type_name; + + const qpdf_object_type_e type_code{::ot_uninitialized}; + char const* type_name{"uninitialized"}; protected: QPDF* qpdf{nullptr}; - QPDFObjGen og; + QPDFObjGen og{}; + qpdf_offset_t parsed_offset{-1}; }; #endif // QPDFVALUE_HH |