aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-03-07 20:05:26 +0100
committerm-holger <m-holger@kubitscheck.org>2023-03-08 11:00:17 +0100
commit82efe52b7dd664f4ae38f8932a9906e5232030cf (patch)
tree23a17e25b7c5bc11f4f5bb53e4dbada148090230
parentfc828c2a5093e6f4eda81c817b4db4a0c8bb0984 (diff)
downloadqpdf-82efe52b7dd664f4ae38f8932a9906e5232030cf.tar.zst
Tidy QdfFixer::adjustOstreamXref
-rw-r--r--qpdf/fix-qdf.cc3
1 files changed, 1 insertions, 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