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

@ -343,9 +343,9 @@ void PDFObjectClassifier::classify(const PDFDocument* document)
if (const PDFDictionary* xobjectDictionary = document->getDictionaryFromObject(resourcesDictionary->get("XObject")))
{
const size_t count = xobjectDictionary->getCount();
for (size_t i = 0; i < count; ++i)
for (size_t xObjectIndex = 0; xObjectIndex < count; ++xObjectIndex)
{
const PDFObject& item = xobjectDictionary->getValue(i);
const PDFObject& item = xobjectDictionary->getValue(xObjectIndex);
if (item.isReference() && hasObject(item.getReference()))
{
if (const PDFDictionary* xobjectItemDictionary = document->getDictionaryFromObject(item))