aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2020-10-22 21:18:13 +0200
committerJay Berkenbilt <ejb@ql.org>2020-10-22 21:39:36 +0200
commit30bb4c64eeddef030132e467c6388d5695a4117c (patch)
treeedbcaafd2d38babe0fedd933410cd7955dbc7225 /libqpdf
parent232f5fc9f3bed8e1b02bca5d10b2eca444e30f95 (diff)
downloadqpdf-30bb4c64eeddef030132e467c6388d5695a4117c.tar.zst
Minor code cleanup
* Return rather than exiting from realmain in qpdf.cc * Remove extraneous blank line * Don't assign temporary to const reference
Diffstat (limited to 'libqpdf')
-rw-r--r--libqpdf/QPDF.cc1
-rw-r--r--libqpdf/QPDFWriter.cc2
2 files changed, 1 insertions, 2 deletions
diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc
index 3b6d70ee..2ffd4cc6 100644
--- a/libqpdf/QPDF.cc
+++ b/libqpdf/QPDF.cc
@@ -1464,7 +1464,6 @@ QPDF::fixDanglingReferences(bool force)
queue.push_back(sub);
}
}
-
}
}
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc
index 15999436..ba19cbb9 100644
--- a/libqpdf/QPDFWriter.cc
+++ b/libqpdf/QPDFWriter.cc
@@ -2370,7 +2370,7 @@ QPDFWriter::generateObjectStreams()
// This code doesn't do anything with /Extends.
- std::vector<QPDFObjGen> const& eligible =
+ std::vector<QPDFObjGen> eligible =
QPDF::Writer::getCompressibleObjGens(this->m->pdf);
size_t n_object_streams = (eligible.size() + 99U) / 100U;
if (n_object_streams == 0)