diff options
Diffstat (limited to 'core/fpdfdoc/cpdf_metadata.cpp')
-rw-r--r-- | core/fpdfdoc/cpdf_metadata.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/core/fpdfdoc/cpdf_metadata.cpp b/core/fpdfdoc/cpdf_metadata.cpp index 972569a25d..56f8c64c0e 100644 --- a/core/fpdfdoc/cpdf_metadata.cpp +++ b/core/fpdfdoc/cpdf_metadata.cpp @@ -16,12 +16,8 @@ namespace { void CheckForSharedFormInternal(CFX_XMLElement* element, std::vector<UnsupportedFeature>* unsupported) { - for (const auto& pair : element->GetAttributes()) { - if (pair.first != L"xmlns:adhocwf" || - pair.second != L"http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/") { - continue; - } - + WideString attr = element->GetAttribute(L"xmlns:adhocwf"); + if (attr == L"http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/") { for (const auto* child = element->GetFirstChild(); child; child = child->GetNextSibling()) { if (child->GetType() != FX_XMLNODE_Element) |