Tidy QPDFAcroFormDocumentHelper::getFieldsWithQualifiedName

This commit is contained in:
m-holger 2023-01-05 14:44:16 +00:00
parent e37ce44186
commit 5b3b135fda
1 changed files with 2 additions and 3 deletions

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>