Issue #22: Fix compilation warnings

This commit is contained in:
Jakub Melka
2022-07-31 18:32:57 +02:00
parent b30150a503
commit e310efb763
70 changed files with 424 additions and 435 deletions

View File

@ -476,11 +476,11 @@ PDFObject PDFObjectManipulator::removeDuplicitReferencesInArrays(PDFObject objec
PDFArray array;
std::set<PDFObjectReference> usedReferences;
for (const PDFObject& object : *object.getArray())
for (const PDFObject& arrayObject : *object.getArray())
{
if (object.isReference())
if (arrayObject.isReference())
{
PDFObjectReference reference = object.getReference();
PDFObjectReference reference = arrayObject.getReference();
if (!usedReferences.count(reference))
{
usedReferences.insert(reference);
@ -489,7 +489,7 @@ PDFObject PDFObjectManipulator::removeDuplicitReferencesInArrays(PDFObject objec
}
else
{
array.appendItem(removeDuplicitReferencesInArrays(object));
array.appendItem(removeDuplicitReferencesInArrays(arrayObject));
}
}