blob: 495692cb028444b19fe25aaae2eaec07124525c0 [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.
#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) = default;
CFX_GraphStateData::~CFX_GraphStateData() = default;
CFX_GraphStateData& CFX_GraphStateData::operator=(
const CFX_GraphStateData& that) = default;
CFX_GraphStateData& CFX_GraphStateData::operator=(CFX_GraphStateData&& that) =
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.
const CFX_RetainableGraphStateData& src)
: CFX_GraphStateData(src) {}
CFX_RetainableGraphStateData::~CFX_RetainableGraphStateData() = default;