diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-01-16 18:11:35 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-01-24 09:25:11 +0100 |
commit | ba814703fbfc99c99d24c8873ae3356b2623dc69 (patch) | |
tree | 8e5f3f9cb708700a6d596f3d7e9a6498de54eebe /include | |
parent | 5f0708418a0a9cbacc033f52efc11c759120fd09 (diff) | |
download | qpdf-ba814703fbfc99c99d24c8873ae3356b2623dc69.tar.zst |
Use QPDFNameTreeObjectHelper's iterator directly
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFNameTreeObjectHelper.hh | 2 | ||||
-rw-r--r-- | include/qpdf/QPDFNumberTreeObjectHelper.hh | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/qpdf/QPDFNameTreeObjectHelper.hh b/include/qpdf/QPDFNameTreeObjectHelper.hh index f94d34cf..e5bb2893 100644 --- a/include/qpdf/QPDFNameTreeObjectHelper.hh +++ b/include/qpdf/QPDFNameTreeObjectHelper.hh @@ -53,7 +53,7 @@ class QPDFNameTreeObjectHelper: public QPDFObjectHelper bool hasName(std::string const& utf8); // Find an object by name. If found, returns true and initializes - // oh. + // oh. See also find(). QPDF_DLL bool findObject(std::string const& utf8, QPDFObjectHandle& oh); diff --git a/include/qpdf/QPDFNumberTreeObjectHelper.hh b/include/qpdf/QPDFNumberTreeObjectHelper.hh index 393e8dba..d4e93690 100644 --- a/include/qpdf/QPDFNumberTreeObjectHelper.hh +++ b/include/qpdf/QPDFNumberTreeObjectHelper.hh @@ -60,7 +60,7 @@ class QPDFNumberTreeObjectHelper: public QPDFObjectHelper bool hasIndex(numtree_number idx); // Find an object with a specific index. If found, returns true - // and initializes oh. + // and initializes oh. See also find(). QPDF_DLL bool findObject(numtree_number idx, QPDFObjectHandle& oh); // Find the object at the index or, if not found, the object whose @@ -70,7 +70,8 @@ class QPDFNumberTreeObjectHelper: public QPDFObjectHelper // offset to the difference between the requested index and the // actual index. For example, if a number tree has values for 3 // and 6 and idx is 5, this method would return true, initialize - // oh to the value with index 3, and set offset to 2 (5 - 3). + // oh to the value with index 3, and set offset to 2 (5 - 3). See + // also find(). QPDF_DLL bool findObjectAtOrBelow(numtree_number idx, QPDFObjectHandle& oh, numtree_number& offset); |