2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-09-22 18:19:08 +00:00

Tidy QPDFAcroFormDocumentHelper::getFieldsWithQualifiedName

This commit is contained in:
m-holger 2023-01-05 14:44:16 +00:00
parent e37ce44186
commit 5b3b135fda

View File

@ -188,12 +188,11 @@ QPDFAcroFormDocumentHelper::getFieldsWithQualifiedName(std::string const& name)
{
analyze();
// Keep from creating an empty entry
std::set<QPDFObjGen> result;
auto iter = this->m->name_to_fields.find(name);
if (iter != this->m->name_to_fields.end()) {
result = iter->second;
return iter->second;
}
return result;
return {};
}
std::vector<QPDFAnnotationObjectHelper>