blob: 65ca19f08c1177d29ef7874b6e3113cb426b3792 [file] [log] [blame]
// Copyright 2016 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 "core/fxge/cfx_graphstatedata.h"
CFX_GraphStateData::CFX_GraphStateData() = default;
CFX_GraphStateData::CFX_GraphStateData(const CFX_GraphStateData& src) = default;
CFX_GraphStateData::CFX_GraphStateData(CFX_GraphStateData&& src) noexcept =
default;
CFX_GraphStateData::~CFX_GraphStateData() = default;
CFX_GraphStateData& CFX_GraphStateData::operator=(
const CFX_GraphStateData& that) = default;
CFX_GraphStateData& CFX_GraphStateData::operator=(
CFX_GraphStateData&& that) noexcept = default;
CFX_RetainableGraphStateData::CFX_RetainableGraphStateData() = default;
// Note: can't default the copy constructor since Retainable has a deleted
// copy constructor (as it should). Instead, we want the default Retainable
// constructor to be invoked so as to create a copy with a ref-count of 1 as
// of the time it is created, then populate the remainder of the members from
// the |src| object.
CFX_RetainableGraphStateData::CFX_RetainableGraphStateData(
const CFX_RetainableGraphStateData& src)
: CFX_GraphStateData(src) {}
CFX_RetainableGraphStateData::~CFX_RetainableGraphStateData() = default;
RetainPtr<CFX_RetainableGraphStateData> CFX_RetainableGraphStateData::Clone()
const {
return pdfium::MakeRetain<CFX_RetainableGraphStateData>(*this);
}