diff options
Diffstat (limited to 'xfa/fxfa/parser/cxfa_operation.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_operation.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xfa/fxfa/parser/cxfa_operation.cpp b/xfa/fxfa/parser/cxfa_operation.cpp index dbd59baac..14a8b5245 100644 --- a/xfa/fxfa/parser/cxfa_operation.cpp +++ b/xfa/fxfa/parser/cxfa_operation.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,7 +7,7 @@ #include "xfa/fxfa/parser/cxfa_operation.h" #include "fxjs/xfa/cjx_textnode.h" -#include "third_party/base/ptr_util.h" +#include "xfa/fxfa/parser/cxfa_document.h" namespace { @@ -25,11 +25,13 @@ const CXFA_Node::AttributeData kOperationAttributeData[] = { CXFA_Operation::CXFA_Operation(CXFA_Document* doc, XFA_PacketType packet) : CXFA_Node(doc, packet, - XFA_XDPPACKET_ConnectionSet, + XFA_XDPPACKET::kConnectionSet, XFA_ObjectType::TextNode, XFA_Element::Operation, {}, kOperationAttributeData, - pdfium::MakeUnique<CJX_TextNode>(this)) {} + cppgc::MakeGarbageCollected<CJX_TextNode>( + doc->GetHeap()->GetAllocationHandle(), + this)) {} CXFA_Operation::~CXFA_Operation() = default; |