diff options
Diffstat (limited to 'xfa/fxfa/parser/cxfa_currencysymbols.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_currencysymbols.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/xfa/fxfa/parser/cxfa_currencysymbols.cpp b/xfa/fxfa/parser/cxfa_currencysymbols.cpp index 3b2e90c19..9cf0be6db 100644 --- a/xfa/fxfa/parser/cxfa_currencysymbols.cpp +++ b/xfa/fxfa/parser/cxfa_currencysymbols.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_currencysymbols.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 kCurrencySymbolsPropertyData[] = { - {XFA_Element::CurrencySymbol, 3, 0}, + {XFA_Element::CurrencySymbol, 3, {}}, }; } // namespace @@ -21,11 +21,13 @@ CXFA_CurrencySymbols::CXFA_CurrencySymbols(CXFA_Document* doc, XFA_PacketType packet) : CXFA_Node(doc, packet, - XFA_XDPPACKET_LocaleSet, + XFA_XDPPACKET::kLocaleSet, XFA_ObjectType::Node, XFA_Element::CurrencySymbols, kCurrencySymbolsPropertyData, {}, - pdfium::MakeUnique<CJX_Node>(this)) {} + cppgc::MakeGarbageCollected<CJX_Node>( + doc->GetHeap()->GetAllocationHandle(), + this)) {} CXFA_CurrencySymbols::~CXFA_CurrencySymbols() = default; |