summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-21 22:10:25 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-21 22:10:25 +0000
commitd328d91f9e7a49f0d79048a7d10be9ba17ad9cb2 (patch)
treeadb8d8d9cfd3d780f523a1226f75fd4d5ebef1b8 /xfa/fxfa/parser
parent56e04d2656bdd5f2b9448d857e8e73ab16aadf8e (diff)
downloadpdfium-chromium/3275.tar.xz
Cleanup CXFA_TextDatachromium/3275
This CL makes GetContent const. Change-Id: I0dc3f939d265f4605a1bfb14020ca938d47f5602 Reviewed-on: https://pdfium-review.googlesource.com/19112 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser')
-rw-r--r--xfa/fxfa/parser/cxfa_textdata.cpp2
-rw-r--r--xfa/fxfa/parser/cxfa_textdata.h2
2 files changed, 2 insertions, 2 deletions
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_