diff --git a/libqpdf/QPDFAcroFormDocumentHelper.cc b/libqpdf/QPDFAcroFormDocumentHelper.cc index f8ccddf0..6a7eca55 100644 --- a/libqpdf/QPDFAcroFormDocumentHelper.cc +++ b/libqpdf/QPDFAcroFormDocumentHelper.cc @@ -188,12 +188,11 @@ QPDFAcroFormDocumentHelper::getFieldsWithQualifiedName(std::string const& name) { analyze(); // Keep from creating an empty entry - std::set 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