2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 02:49:00 +00:00

Rename Xref_table::subsections to bad_subsections

This commit is contained in:
m-holger 2024-08-20 15:42:54 +01:00
parent 0f0747b3ae
commit ad10fa3006
2 changed files with 8 additions and 1 deletions

View File

@ -827,7 +827,7 @@ QPDF::Xref_table::subsection(std::string const& line)
} }
std::vector<QPDF::Xref_table::Subsection> std::vector<QPDF::Xref_table::Subsection>
QPDF::Xref_table::subsections(std::string& line) QPDF::Xref_table::bad_subsections(std::string& line)
{ {
std::vector<QPDF::Xref_table::Subsection> result; std::vector<QPDF::Xref_table::Subsection> result;
qpdf_offset_t f1 = 0; qpdf_offset_t f1 = 0;
@ -854,6 +854,12 @@ QPDF::Xref_table::subsections(std::string& line)
} }
} }
std::vector<QPDF::Xref_table::Subsection>
QPDF::Xref_table::subsections(std::string& line)
{
return bad_subsections(line);
}
bool bool
QPDF::Xref_table::read_bad_entry(qpdf_offset_t& f1, int& f2, char& type) QPDF::Xref_table::read_bad_entry(qpdf_offset_t& f1, int& f2, char& type)
{ {

View File

@ -231,6 +231,7 @@ class QPDF::Xref_table
// Methods to parse tables // Methods to parse tables
qpdf_offset_t process_section(qpdf_offset_t offset); qpdf_offset_t process_section(qpdf_offset_t offset);
std::vector<Subsection> subsections(std::string& line); std::vector<Subsection> subsections(std::string& line);
std::vector<Subsection> bad_subsections(std::string& line);
Subsection subsection(std::string const& line); Subsection subsection(std::string const& line);
bool read_entry(qpdf_offset_t& f1, int& f2, char& type); bool read_entry(qpdf_offset_t& f1, int& f2, char& type);
bool read_bad_entry(qpdf_offset_t& f1, int& f2, char& type); bool read_bad_entry(qpdf_offset_t& f1, int& f2, char& type);