summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-21 17:05:21 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-21 17:05:21 +0000
commit9c1873033c021643e8ae6ff3b53855ca53e07fd1 (patch)
tree9ffc34b1288fa492d5d6119179bb598a0720c510 /xfa/fxfa/parser
parentf3c2fa82e375a67262674b469657ab6690ee2f50 (diff)
downloadpdfium-9c1873033c021643e8ae6ff3b53855ca53e07fd1.tar.xz
Make CXFA_CalculateData methods const
Change-Id: Ic939cd7dd49aab7db59244eed6e0513bf2ca7e69 Reviewed-on: https://pdfium-review.googlesource.com/18914 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_calculatedata.cpp6
-rw-r--r--xfa/fxfa/parser/cxfa_calculatedata.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/xfa/fxfa/parser/cxfa_calculatedata.cpp b/xfa/fxfa/parser/cxfa_calculatedata.cpp
index ff71e33824..5bf106cbf0 100644
--- a/xfa/fxfa/parser/cxfa_calculatedata.cpp
+++ b/xfa/fxfa/parser/cxfa_calculatedata.cpp
@@ -12,17 +12,17 @@
CXFA_CalculateData::CXFA_CalculateData(CXFA_Node* pNode)
: CXFA_DataData(pNode) {}
-int32_t CXFA_CalculateData::GetOverride() {
+int32_t CXFA_CalculateData::GetOverride() const {
return m_pNode->JSNode()
->TryEnum(XFA_Attribute::Override, false)
.value_or(XFA_ATTRIBUTEENUM_Error);
}
-CXFA_ScriptData CXFA_CalculateData::GetScriptData() {
+CXFA_ScriptData CXFA_CalculateData::GetScriptData() const {
return CXFA_ScriptData(m_pNode->GetChild(0, XFA_Element::Script, false));
}
-WideString CXFA_CalculateData::GetMessageText() {
+WideString CXFA_CalculateData::GetMessageText() const {
CXFA_Node* pNode = m_pNode->GetChild(0, XFA_Element::Message, false);
if (!pNode)
return L"";
diff --git a/xfa/fxfa/parser/cxfa_calculatedata.h b/xfa/fxfa/parser/cxfa_calculatedata.h
index 9b6786a42c..3158bd97cf 100644
--- a/xfa/fxfa/parser/cxfa_calculatedata.h
+++ b/xfa/fxfa/parser/cxfa_calculatedata.h
@@ -17,9 +17,9 @@ class CXFA_CalculateData : public CXFA_DataData {
public:
explicit CXFA_CalculateData(CXFA_Node* pNode);
- int32_t GetOverride();
- CXFA_ScriptData GetScriptData();
- WideString GetMessageText();
+ int32_t GetOverride() const;
+ CXFA_ScriptData GetScriptData() const;
+ WideString GetMessageText() const;
};
#endif // XFA_FXFA_PARSER_CXFA_CALCULATEDATA_H_