mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-03 15:17:29 +00:00
Fix up a few comments
This commit is contained in:
parent
62833ac74f
commit
31b2cfbb79
@ -875,8 +875,8 @@ class QPDF
|
|||||||
};
|
};
|
||||||
friend class Resolver;
|
friend class Resolver;
|
||||||
|
|
||||||
// ParseGuard class allows QPDFObjectHandle to detect re-entrant
|
// The ParseGuard class allows QPDFObjectHandle to detect
|
||||||
// resolution
|
// re-entrant parsing.
|
||||||
class ParseGuard
|
class ParseGuard
|
||||||
{
|
{
|
||||||
friend class QPDFParser;
|
friend class QPDFParser;
|
||||||
|
@ -1947,9 +1947,6 @@ QPDF::resolve(QPDFObjGen const& og)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check object cache before checking xref table. This allows us
|
|
||||||
// to insert things into the object cache that don't actually
|
|
||||||
// exist in the file.
|
|
||||||
if (this->m->resolving.count(og)) {
|
if (this->m->resolving.count(og)) {
|
||||||
// This can happen if an object references itself directly or
|
// This can happen if an object references itself directly or
|
||||||
// indirectly in some key that has to be resolved during
|
// indirectly in some key that has to be resolved during
|
||||||
@ -2558,8 +2555,8 @@ QPDF::swapObjects(int objid1, int generation1, int objid2, int generation2)
|
|||||||
void
|
void
|
||||||
QPDF::swapObjects(QPDFObjGen const& og1, QPDFObjGen const& og2)
|
QPDF::swapObjects(QPDFObjGen const& og1, QPDFObjGen const& og2)
|
||||||
{
|
{
|
||||||
// Force objects to be loaded into cache; then swap them in the
|
// Force objects to be read from the input source if needed, then
|
||||||
// cache.
|
// swap them in the cache.
|
||||||
resolve(og1);
|
resolve(og1);
|
||||||
resolve(og2);
|
resolve(og2);
|
||||||
m->obj_cache[og1].object->swapWith(m->obj_cache[og2].object);
|
m->obj_cache[og1].object->swapWith(m->obj_cache[og2].object);
|
||||||
|
Loading…
Reference in New Issue
Block a user