diff options
Diffstat (limited to 'core/fpdfdoc')
-rw-r--r-- | core/fpdfdoc/cpdf_metadata.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/core/fpdfdoc/cpdf_metadata.cpp b/core/fpdfdoc/cpdf_metadata.cpp index c928952dca..161fc93edd 100644 --- a/core/fpdfdoc/cpdf_metadata.cpp +++ b/core/fpdfdoc/cpdf_metadata.cpp @@ -19,11 +19,12 @@ void CheckForSharedFormInternal(CFX_XMLElement* element, std::vector<UnsupportedFeature>* unsupported) { WideString attr = element->GetAttribute(L"xmlns:adhocwf"); if (attr == L"http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/") { - for (const auto& child : *element) { + for (const auto* child = element->GetFirstChild(); child; + child = child->GetNextSibling()) { if (child->GetType() != FX_XMLNODE_Element) continue; - const auto* child_elem = static_cast<const CFX_XMLElement*>(child.get()); + const auto* child_elem = static_cast<const CFX_XMLElement*>(child); if (child_elem->GetName() != L"adhocwf:workflowType") continue; @@ -45,11 +46,12 @@ void CheckForSharedFormInternal(CFX_XMLElement* element, } } - for (const auto& child : *element) { + for (auto* child = element->GetFirstChild(); child; + child = child->GetNextSibling()) { if (child->GetType() != FX_XMLNODE_Element) continue; - CheckForSharedFormInternal(static_cast<CFX_XMLElement*>(child.get()), + CheckForSharedFormInternal(static_cast<CFX_XMLElement*>(child), unsupported); } } |