aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFWriter.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-05-29 20:26:18 +0200
committerm-holger <m-holger@kubitscheck.org>2023-06-02 20:24:12 +0200
commitacd0acf16931ce92bc908e4960c5a1e43d53b550 (patch)
tree466c87d625ab4d5b3eab45301fab34e11be1271a /libqpdf/QPDFWriter.cc
parent3c5700c255f4603b5df9c6d183d13dd71a083cc3 (diff)
downloadqpdf-acd0acf16931ce92bc908e4960c5a1e43d53b550.tar.zst
Fix doc typos
Diffstat (limited to 'libqpdf/QPDFWriter.cc')
-rw-r--r--libqpdf/QPDFWriter.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc
index 94ce07b9..50594a09 100644
--- a/libqpdf/QPDFWriter.cc
+++ b/libqpdf/QPDFWriter.cc
@@ -1346,8 +1346,8 @@ QPDFWriter::unparseObject(
// Make a shallow copy of this object so we can modify it safely without affecting the
// original. This code has logic to skip certain keys in agreement with prepareFileForWrite
// and with skip_stream_parameters so that replacing them doesn't leave unreferenced objects
- // in the output. We can use unsafeShallowCopy here because we are all we are doing is
- // removing or replacing top-level keys.
+ // in the output. We can use unsafeShallowCopy here because all we are doing is removing or
+ // replacing top-level keys.
object = object.unsafeShallowCopy();
// Handle special cases for specific dictionaries.
@@ -1701,7 +1701,7 @@ QPDFWriter::writeObjectStream(QPDFObjectHandle object)
}
QPDFObjectHandle obj_to_write = m->pdf.getObject(obj);
if (obj_to_write.isStream()) {
- // This condition occurred in a fuzz input. Ideally we should block it at at parse
+ // This condition occurred in a fuzz input. Ideally we should block it at parse
// time, but it's not clear to me how to construct a case for this.
QTC::TC("qpdf", "QPDFWriter stream in ostream");
obj_to_write.warnIfPossible("stream found inside object stream; treating as null");