You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
654 B
27 lines
654 B
// Copyright 2018 PDFium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
|
|
|
|
#include "xfa/fxfa/parser/cxfa_nodeowner.h"
|
|
|
|
#include <utility>
|
|
|
|
#include "xfa/fxfa/parser/cxfa_node.h"
|
|
|
|
CXFA_NodeOwner::CXFA_NodeOwner() = default;
|
|
|
|
CXFA_NodeOwner::~CXFA_NodeOwner() {
|
|
is_being_destroyed_ = true;
|
|
}
|
|
|
|
CXFA_Node* CXFA_NodeOwner::AddOwnedNode(std::unique_ptr<CXFA_Node> node) {
|
|
if (!node)
|
|
return nullptr;
|
|
|
|
CXFA_Node* ret = node.get();
|
|
nodes_.push_back(std::move(node));
|
|
return ret;
|
|
}
|