Home | History | Annotate | Download | only in xml
      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_xmlchardata.h"
      8 
      9 #include "third_party/base/ptr_util.h"
     10 
     11 CFX_XMLCharData::CFX_XMLCharData(const WideString& wsCData)
     12     : CFX_XMLText(wsCData) {}
     13 
     14 CFX_XMLCharData::~CFX_XMLCharData() {}
     15 
     16 FX_XMLNODETYPE CFX_XMLCharData::GetType() const {
     17   return FX_XMLNODE_CharData;
     18 }
     19 
     20 std::unique_ptr<CFX_XMLNode> CFX_XMLCharData::Clone() {
     21   return pdfium::MakeUnique<CFX_XMLCharData>(GetText());
     22 }
     23