Commit adb866efd3942ca0ce9c93a60dfecdde332379ec

Authored by Jay Berkenbilt
1 parent 8ba968bd

Fix error from older gcc versions

Showing 1 changed file with 3 additions and 3 deletions
libqpdf/QPDF.cc
@@ -709,10 +709,10 @@ QPDF::read_xref(qpdf_offset_t xref_offset) @@ -709,10 +709,10 @@ QPDF::read_xref(qpdf_offset_t xref_offset)
709 709
710 // Make sure we keep only the highest generation for any object. 710 // Make sure we keep only the highest generation for any object.
711 QPDFObjGen last_og{-1, 0}; 711 QPDFObjGen last_og{-1, 0};
712 - for (auto const& [og, _xref]: m->xref_table) {  
713 - if (og.getObj() == last_og.getObj()) 712 + for (auto const& og: m->xref_table) {
  713 + if (og.first.getObj() == last_og.getObj())
714 removeObject(last_og); 714 removeObject(last_og);
715 - last_og = og; 715 + last_og = og.first;
716 } 716 }
717 } 717 }
718 718