• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #include "core/fxcrt/xml/cfx_xmltext.h"
8 
9 #include "third_party/base/ptr_util.h"
10 
CFX_XMLText(const WideString & wsText)11 CFX_XMLText::CFX_XMLText(const WideString& wsText)
12     : CFX_XMLNode(), m_wsText(wsText) {}
13 
~CFX_XMLText()14 CFX_XMLText::~CFX_XMLText() {}
15 
GetType() const16 FX_XMLNODETYPE CFX_XMLText::GetType() const {
17   return FX_XMLNODE_Text;
18 }
19 
Clone()20 std::unique_ptr<CFX_XMLNode> CFX_XMLText::Clone() {
21   return pdfium::MakeUnique<CFX_XMLText>(m_wsText);
22 }
23