2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-11 15:40:58 +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(); analyze();
// Keep from creating an empty entry // Keep from creating an empty entry
std::set<QPDFObjGen> result;
auto iter = this->m->name_to_fields.find(name); auto iter = this->m->name_to_fields.find(name);
if (iter != this->m->name_to_fields.end()) { if (iter != this->m->name_to_fields.end()) {
result = iter->second; return iter->second;
} }
return result; return {};
} }
std::vector<QPDFAnnotationObjectHelper> std::vector<QPDFAnnotationObjectHelper>