Commit 5b3b135fda353379a508088a9931ebb24b68d53d
1 parent
e37ce441
Tidy QPDFAcroFormDocumentHelper::getFieldsWithQualifiedName
Showing
1 changed file
with
2 additions
and
3 deletions
libqpdf/QPDFAcroFormDocumentHelper.cc
| ... | ... | @@ -188,12 +188,11 @@ QPDFAcroFormDocumentHelper::getFieldsWithQualifiedName(std::string const& name) |
| 188 | 188 | { |
| 189 | 189 | analyze(); |
| 190 | 190 | // Keep from creating an empty entry |
| 191 | - std::set<QPDFObjGen> result; | |
| 192 | 191 | auto iter = this->m->name_to_fields.find(name); |
| 193 | 192 | if (iter != this->m->name_to_fields.end()) { |
| 194 | - result = iter->second; | |
| 193 | + return iter->second; | |
| 195 | 194 | } |
| 196 | - return result; | |
| 195 | + return {}; | |
| 197 | 196 | } |
| 198 | 197 | |
| 199 | 198 | std::vector<QPDFAnnotationObjectHelper> | ... | ... |