summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_textpiece.cpp
blob: 4b57aa82d9be82f1be1d312955facab7e9b93f5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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. http://www.foxitsoftware.com

#include "xfa/fxfa/app/xfa_textpiece.h"

#include "xfa/fxfa/app/cxfa_linkuserdata.h"

XFA_TextPiece::XFA_TextPiece()
    : pszText(nullptr), pFont(nullptr), pLinkData(nullptr) {}

XFA_TextPiece::~XFA_TextPiece() {
  if (pLinkData)
    pLinkData->Release();
}