aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-12-20 20:41:44 +0100
committerJay Berkenbilt <ejb@ql.org>2021-12-20 20:51:45 +0100
commitd866f480813169208efba0e4f32ecde4a5b54ebc (patch)
tree593a93d99ec00e361fbbd51c1054950cfd5491f5 /libqpdf
parentcf7b2b5700de735f6db6904d001db598bfb947af (diff)
downloadqpdf-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')
-rw-r--r--libqpdf/qpdf-c.cc2
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();