blob: 6d0b6e5788a03bbdacacc94d86efdea817a0f938 [file] [log] [blame]
// Copyright 2017 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.
#include "fxjs/cfx_globalarray.h"
#include <utility>
#include "fxjs/cfx_keyvalue.h"
#include "third_party/base/ptr_util.h"
CFX_GlobalArray::CFX_GlobalArray() = default;
CFX_GlobalArray::CFX_GlobalArray(CFX_GlobalArray&& that) = default;
CFX_GlobalArray::~CFX_GlobalArray() = default;
CFX_GlobalArray& CFX_GlobalArray::operator=(CFX_GlobalArray&& array) = default;
void CFX_GlobalArray::Add(std::unique_ptr<CFX_KeyValue> pKeyValue) {
size_t CFX_GlobalArray::Count() const {
return m_Array.size();
CFX_KeyValue* CFX_GlobalArray::GetAt(int index) const {