summaryrefslogtreecommitdiffstats
path: root/libqpdf
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
parent3c5700c255f4603b5df9c6d183d13dd71a083cc3 (diff)
downloadqpdf-acd0acf16931ce92bc908e4960c5a1e43d53b550.tar.zst
Fix doc typos
Diffstat (limited to 'libqpdf')
-rw-r--r--libqpdf/NNTree.cc10
-rw-r--r--libqpdf/QPDFArgParser.cc2
-rw-r--r--libqpdf/QPDFWriter.cc6
3 files changed, 9 insertions, 9 deletions
diff --git a/libqpdf/NNTree.cc b/libqpdf/NNTree.cc
index 129c8734..a584ff8d 100644
--- a/libqpdf/NNTree.cc
+++ b/libqpdf/NNTree.cc
@@ -44,10 +44,10 @@ NNTreeIterator::updateIValue(bool allow_invalid)
// various cases to ensure we don't introduce that bug in the future, but sadly it's tricky to
// verify by reasoning about the code that this constraint is always satisfied. Whenever we
// update what the iterator points to, we should call setItemNumber, which calls this. If we
- // change what the iterator in some other way, such as replacing a value or removing an item and
- // making the iterator point at a different item in potentially the same position, we must call
- // updateIValue as well. These cases are handled, and for good measure, we also call
- // updateIValue in operator* and operator->.
+ // change what the iterator points to in some other way, such as replacing a value or removing
+ // an item and making the iterator point at a different item in potentially the same position,
+ // we must call updateIValue as well. These cases are handled, and for good measure, we also
+ // call updateIValue in operator* and operator->.
bool okay = false;
if ((item_number >= 0) && this->node.isDictionary()) {
@@ -226,7 +226,7 @@ NNTreeIterator::split(QPDFObjectHandle to_split, std::list<PathElement>::iterato
// Split some node along the path to the item pointed to by this iterator, and adjust the
// iterator so it points to the same item.
- // In examples, for simplicity, /Nums is show to just contain numbers instead of pairs. Imagine
+ // In examples, for simplicity, /Nums is shown to just contain numbers instead of pairs. Imagine
// this tree:
//
// root: << /Kids [ A B C D ] >>
diff --git a/libqpdf/QPDFArgParser.cc b/libqpdf/QPDFArgParser.cc
index 78e5e843..3ebec29c 100644
--- a/libqpdf/QPDFArgParser.cc
+++ b/libqpdf/QPDFArgParser.cc
@@ -232,7 +232,7 @@ void
QPDFArgParser::handleArgFileArguments()
{
// Support reading arguments from files. Create a new argv. Ensure that argv itself as well as
- // all its contents are automatically deleted by using shared pointers to back the pointers in
+ // all its contents are automatically deleted by using shared pointers back to the pointers in
// argv.
m->new_argv.push_back(QUtil::make_shared_cstr(m->argv[0]));
for (int i = 1; i < m->argc; ++i) {
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");