diff options
Diffstat (limited to 'xfa/fxfa/parser/cxfa_cache.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_cache.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/xfa/fxfa/parser/cxfa_cache.cpp b/xfa/fxfa/parser/cxfa_cache.cpp index 8b51c02df..9287c6623 100644 --- a/xfa/fxfa/parser/cxfa_cache.cpp +++ b/xfa/fxfa/parser/cxfa_cache.cpp @@ -1,4 +1,4 @@ -// Copyright 2017 PDFium Authors. All rights reserved. +// Copyright 2017 The PDFium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -7,12 +7,12 @@ #include "xfa/fxfa/parser/cxfa_cache.h" #include "fxjs/xfa/cjx_node.h" -#include "third_party/base/ptr_util.h" +#include "xfa/fxfa/parser/cxfa_document.h" namespace { const CXFA_Node::PropertyData kCachePropertyData[] = { - {XFA_Element::TemplateCache, 1, 0}, + {XFA_Element::TemplateCache, 1, {}}, }; const CXFA_Node::AttributeData kCacheAttributeData[] = { @@ -25,11 +25,13 @@ const CXFA_Node::AttributeData kCacheAttributeData[] = { CXFA_Cache::CXFA_Cache(CXFA_Document* doc, XFA_PacketType packet) : CXFA_Node(doc, packet, - XFA_XDPPACKET_Config, + XFA_XDPPACKET::kConfig, XFA_ObjectType::Node, XFA_Element::Cache, kCachePropertyData, kCacheAttributeData, - pdfium::MakeUnique<CJX_Node>(this)) {} + cppgc::MakeGarbageCollected<CJX_Node>( + doc->GetHeap()->GetAllocationHandle(), + this)) {} -CXFA_Cache::~CXFA_Cache() {} +CXFA_Cache::~CXFA_Cache() = default; |