2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-02 10:20:52 +00:00

Tidy QdfFixer::adjustOstreamXref

This commit is contained in:
m-holger 2023-03-07 19:05:26 +00:00
parent fc828c2a50
commit 82efe52b7d

View File

@ -308,8 +308,7 @@ QdfFixer::checkObjId(std::string const& cur_obj_str)
void
QdfFixer::adjustOstreamXref()
{
xref.pop_back();
xref.push_back(QPDFXRefEntry(2, ostream_id, QIntC::to_int(ostream_idx++)));
xref.back() = QPDFXRefEntry(2, ostream_id, QIntC::to_int(ostream_idx++));
}
void