mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #22: Fix compilation warnings
This commit is contained in:
@ -37,10 +37,10 @@ PDFOptionalContentProperties PDFOptionalContentProperties::create(const PDFDocum
|
||||
|
||||
for (const PDFObjectReference& reference : properties.m_allOptionalContentGroups)
|
||||
{
|
||||
const PDFObject& object = document->getStorage().getObject(reference);
|
||||
if (!object.isNull())
|
||||
const PDFObject& currentObject = document->getStorage().getObject(reference);
|
||||
if (!currentObject.isNull())
|
||||
{
|
||||
properties.m_optionalContentGroups[reference] = PDFOptionalContentGroup::create(document, object);
|
||||
properties.m_optionalContentGroups[reference] = PDFOptionalContentGroup::create(document, currentObject);
|
||||
}
|
||||
}
|
||||
|
||||
@ -548,7 +548,6 @@ PDFOptionalContentMembershipObject PDFOptionalContentMembershipObject::create(co
|
||||
{
|
||||
// Something strange occured - either we should have an array, or we should have a reference to the OCG
|
||||
throw PDFException(PDFTranslationContext::tr("Invalid optional content visibility expression."));
|
||||
return std::unique_ptr<Node>(nullptr);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user