From d328d91f9e7a49f0d79048a7d10be9ba17ad9cb2 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 21 Nov 2017 22:10:25 +0000 Subject: Cleanup CXFA_TextData This CL makes GetContent const. Change-Id: I0dc3f939d265f4605a1bfb14020ca938d47f5602 Reviewed-on: https://pdfium-review.googlesource.com/19112 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_textdata.cpp | 2 +- xfa/fxfa/parser/cxfa_textdata.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'xfa') diff --git a/xfa/fxfa/parser/cxfa_textdata.cpp b/xfa/fxfa/parser/cxfa_textdata.cpp index adecd9c831..a042853c6e 100644 --- a/xfa/fxfa/parser/cxfa_textdata.cpp +++ b/xfa/fxfa/parser/cxfa_textdata.cpp @@ -10,6 +10,6 @@ CXFA_TextData::CXFA_TextData(CXFA_Node* pNode) : CXFA_DataData(pNode) {} -WideString CXFA_TextData::GetContent() { +WideString CXFA_TextData::GetContent() const { return m_pNode->JSNode()->GetContent(false); } diff --git a/xfa/fxfa/parser/cxfa_textdata.h b/xfa/fxfa/parser/cxfa_textdata.h index 79ab48e41f..4a28a88d59 100644 --- a/xfa/fxfa/parser/cxfa_textdata.h +++ b/xfa/fxfa/parser/cxfa_textdata.h @@ -16,7 +16,7 @@ class CXFA_TextData : public CXFA_DataData { public: explicit CXFA_TextData(CXFA_Node* pNode); - WideString GetContent(); + WideString GetContent() const; }; #endif // XFA_FXFA_PARSER_CXFA_TEXTDATA_H_ -- cgit v1.2.3