aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-01-30 14:28:37 +0100
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-01-30 19:09:54 +0100
commit0f9086e5094029854eff81cf6480a2284887e5fe (patch)
tree5acc4c8e9b321ebce6cf1146d3b6af0c2420a9d8
parent8eca9d8fd988d6834f3d59554277ff1d9f05d8c9 (diff)
downloadqpdf-0f9086e5094029854eff81cf6480a2284887e5fe.tar.zst
Fix doc typos
-rw-r--r--include/qpdf/QPDF.hh16
-rw-r--r--libqpdf/qpdf/QPDF_Dictionary.hh2
2 files changed, 9 insertions, 9 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index 9926e87c..a2820e4a 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -115,7 +115,7 @@ class QPDF
// For certain forensic or investigatory purposes, it may
// sometimes be useful to specify the encryption key directly,
// even though regular PDF applications do not provide a way to do
- // this. calling setPasswordIsHexKey(true) before calling any of
+ // this. Calling setPasswordIsHexKey(true) before calling any of
// the process methods will bypass the normal encryption key
// computation or recovery mechanisms and interpret the bytes in
// the password as a hex-encoded encryption key. Note that we
@@ -140,7 +140,7 @@ class QPDF
// filter types or override existing ones provided by the library.
// Registered stream filters are used for decoding only as you can
// override encoding with stream data providers. For example, you
- // could use this method to support for one of the other filter
+ // could use this method to add support for one of the other filter
// types by using additional third-party libraries that qpdf does
// not presently use. The standard filters are implemented using
// QPDFStreamFilter classes.
@@ -175,7 +175,7 @@ class QPDF
// By default, any warnings are issued to std::cerr or the error
// stream specified in a call to setOutputStreams as they are
- // encountered. If this is called with a true value, reporting of
+ // encountered. If this method is called with a true value, reporting of
// warnings is suppressed. You may still retrieve warnings by
// calling getWarnings.
QPDF_DLL
@@ -215,7 +215,7 @@ class QPDF
// other objects, some transient and some not. Since what's
// relevant is whether the source QPDF is transient, the method
// must be called on the source QPDF, not the destination one.
- // Since this method will make a copy of the stream in RAM, so be
+ // This method will make a copy of the stream in RAM, so be
// sure you have enough memory to simultaneously hold all the
// streams you're copying.
QPDF_DLL
@@ -236,13 +236,13 @@ class QPDF
QPDF_DLL
bool anyWarnings() const;
- // Indicate the number of warnings that have been issued so far.
- // Does not clear the list of warnings.
+ // Indicate the number of warnings that have been issued since the last
+ // call to getWarnings. Does not clear the list of warnings.
QPDF_DLL
size_t numWarnings() const;
// Return an application-scoped unique ID for this QPDF object.
- // This is not a globally unique ID. It is constructing using a
+ // This is not a globally unique ID. It is constructed using a
// timestamp and a random number and is intended to be unique
// among QPDF objects that are created by a single run of an
// application. While it's very likely that these are actually
@@ -351,7 +351,7 @@ class QPDF
// you are going to turn into a form XObject, though you can also
// use QPDFPageObjectHelper::getFormXObjectForPage for that
// purpose.
-
+ //
// When copying objects with this method, object structure will be
// preserved, so all indirectly referenced indirect objects will
// be copied as well. This includes any circular references that
diff --git a/libqpdf/qpdf/QPDF_Dictionary.hh b/libqpdf/qpdf/QPDF_Dictionary.hh
index 4ea3ae7d..c4e236d3 100644
--- a/libqpdf/qpdf/QPDF_Dictionary.hh
+++ b/libqpdf/qpdf/QPDF_Dictionary.hh
@@ -31,7 +31,7 @@ class QPDF_Dictionary: public QPDFObject
void replaceKey(std::string const& key, QPDFObjectHandle);
// Remove key, doing nothing if key does not exist
void removeKey(std::string const& key);
- // If object is null, replace key; otherwise, remove key
+ // If object is null, remove key; otherwise, replace key
void replaceOrRemoveKey(std::string const& key, QPDFObjectHandle);
protected: