Commit ad10fa30067308d985b8a612a0f6a5390696ce25

Authored by m-holger
1 parent 0f0747b3

Rename Xref_table::subsections to bad_subsections

libqpdf/QPDF.cc
@@ -827,7 +827,7 @@ QPDF::Xref_table::subsection(std::string const& line) @@ -827,7 +827,7 @@ QPDF::Xref_table::subsection(std::string const& line)
827 } 827 }
828 828
829 std::vector<QPDF::Xref_table::Subsection> 829 std::vector<QPDF::Xref_table::Subsection>
830 -QPDF::Xref_table::subsections(std::string& line) 830 +QPDF::Xref_table::bad_subsections(std::string& line)
831 { 831 {
832 std::vector<QPDF::Xref_table::Subsection> result; 832 std::vector<QPDF::Xref_table::Subsection> result;
833 qpdf_offset_t f1 = 0; 833 qpdf_offset_t f1 = 0;
@@ -854,6 +854,12 @@ QPDF::Xref_table::subsections(std::string&amp; line) @@ -854,6 +854,12 @@ QPDF::Xref_table::subsections(std::string&amp; line)
854 } 854 }
855 } 855 }
856 856
  857 +std::vector<QPDF::Xref_table::Subsection>
  858 +QPDF::Xref_table::subsections(std::string& line)
  859 +{
  860 + return bad_subsections(line);
  861 +}
  862 +
857 bool 863 bool
858 QPDF::Xref_table::read_bad_entry(qpdf_offset_t& f1, int& f2, char& type) 864 QPDF::Xref_table::read_bad_entry(qpdf_offset_t& f1, int& f2, char& type)
859 { 865 {
libqpdf/qpdf/QPDF_private.hh
@@ -231,6 +231,7 @@ class QPDF::Xref_table @@ -231,6 +231,7 @@ class QPDF::Xref_table
231 // Methods to parse tables 231 // Methods to parse tables
232 qpdf_offset_t process_section(qpdf_offset_t offset); 232 qpdf_offset_t process_section(qpdf_offset_t offset);
233 std::vector<Subsection> subsections(std::string& line); 233 std::vector<Subsection> subsections(std::string& line);
  234 + std::vector<Subsection> bad_subsections(std::string& line);
234 Subsection subsection(std::string const& line); 235 Subsection subsection(std::string const& line);
235 bool read_entry(qpdf_offset_t& f1, int& f2, char& type); 236 bool read_entry(qpdf_offset_t& f1, int& f2, char& type);
236 bool read_bad_entry(qpdf_offset_t& f1, int& f2, char& type); 237 bool read_bad_entry(qpdf_offset_t& f1, int& f2, char& type);