diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-12-20 20:41:44 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-12-20 20:51:45 +0100 |
commit | d866f480813169208efba0e4f32ecde4a5b54ebc (patch) | |
tree | 593a93d99ec00e361fbbd51c1054950cfd5491f5 /libqpdf/qpdf-c.cc | |
parent | cf7b2b5700de735f6db6904d001db598bfb947af (diff) | |
download | qpdf-d866f480813169208efba0e4f32ecde4a5b54ebc.tar.zst |
Change names of qpdf_object_type_e enumerations
They have to be ot_* rather than qpdf_ot_* for compatibility.
* Different enumerated types are not assignment-compatible in C++, at
least with strict compiler settings
* While you can do `constexpr ot_xyz = ::qpdf_ot_xyz` in QPDFObject.hh to
make QPDFObject::ot_xyz work, QPDFObject::object_type_e::ot_xyz will
only work if the enumerated type names are the same.
Diffstat (limited to 'libqpdf/qpdf-c.cc')
-rw-r--r-- | libqpdf/qpdf-c.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/qpdf-c.cc b/libqpdf/qpdf-c.cc index 5f702272..fb79407d 100644 --- a/libqpdf/qpdf-c.cc +++ b/libqpdf/qpdf-c.cc @@ -1151,7 +1151,7 @@ QPDF_BOOL qpdf_oh_is_number(qpdf_data qpdf, qpdf_oh oh) qpdf_object_type_e qpdf_oh_get_type_code(qpdf_data qpdf, qpdf_oh oh) { return do_with_oh<qpdf_object_type_e>( - qpdf, oh, return_T<qpdf_object_type_e>(qpdf_ot_uninitialized), + qpdf, oh, return_T<qpdf_object_type_e>(ot_uninitialized), [](QPDFObjectHandle& o) { QTC::TC("qpdf", "qpdf-c called qpdf_oh_get_type_code"); return o.getTypeCode(); |