From 82efe52b7dd664f4ae38f8932a9906e5232030cf Mon Sep 17 00:00:00 2001 From: m-holger Date: Tue, 7 Mar 2023 19:05:26 +0000 Subject: Tidy QdfFixer::adjustOstreamXref --- qpdf/fix-qdf.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qpdf/fix-qdf.cc b/qpdf/fix-qdf.cc index 83632f4d..4445fbd1 100644 --- a/qpdf/fix-qdf.cc +++ b/qpdf/fix-qdf.cc @@ -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 -- cgit v1.2.3-70-g09d2