From ad10fa30067308d985b8a612a0f6a5390696ce25 Mon Sep 17 00:00:00 2001 From: m-holger Date: Tue, 20 Aug 2024 15:42:54 +0100 Subject: [PATCH] Rename Xref_table::subsections to bad_subsections --- libqpdf/QPDF.cc | 8 +++++++- libqpdf/qpdf/QPDF_private.hh | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc index 7ea69f52..5f3eb42c 100644 --- a/libqpdf/QPDF.cc +++ b/libqpdf/QPDF.cc @@ -827,7 +827,7 @@ QPDF::Xref_table::subsection(std::string const& line) } std::vector -QPDF::Xref_table::subsections(std::string& line) +QPDF::Xref_table::bad_subsections(std::string& line) { std::vector result; qpdf_offset_t f1 = 0; @@ -854,6 +854,12 @@ QPDF::Xref_table::subsections(std::string& line) } } +std::vector +QPDF::Xref_table::subsections(std::string& line) +{ + return bad_subsections(line); +} + bool QPDF::Xref_table::read_bad_entry(qpdf_offset_t& f1, int& f2, char& type) { diff --git a/libqpdf/qpdf/QPDF_private.hh b/libqpdf/qpdf/QPDF_private.hh index 60931dfa..c82b9538 100644 --- a/libqpdf/qpdf/QPDF_private.hh +++ b/libqpdf/qpdf/QPDF_private.hh @@ -231,6 +231,7 @@ class QPDF::Xref_table // Methods to parse tables qpdf_offset_t process_section(qpdf_offset_t offset); std::vector subsections(std::string& line); + std::vector bad_subsections(std::string& line); Subsection subsection(std::string const& line); bool read_entry(qpdf_offset_t& f1, int& f2, char& type); bool read_bad_entry(qpdf_offset_t& f1, int& f2, char& type);