Fix error from older gcc versions

This commit is contained in:
Jay Berkenbilt 2024-01-08 10:53:41 -05:00
parent 8ba968bd86
commit adb866efd3
1 changed files with 3 additions and 3 deletions

View File

@ -709,10 +709,10 @@ QPDF::read_xref(qpdf_offset_t xref_offset)
// Make sure we keep only the highest generation for any object.
QPDFObjGen last_og{-1, 0};
for (auto const& [og, _xref]: m->xref_table) {
if (og.getObj() == last_og.getObj())
for (auto const& og: m->xref_table) {
if (og.first.getObj() == last_og.getObj())
removeObject(last_og);
last_og = og;
last_og = og.first;
}
}