summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_calculatedata.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-20 21:17:43 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-20 21:17:43 +0000
commit89453e92d5d0b7aaf9e0c3890a90a21adc94a0ce (patch)
tree6a140e4f2b67474127dd9c9b7d2a008c9832306d /xfa/fxfa/parser/cxfa_calculatedata.cpp
parent1699413c207c228ae7eae3d47e89adacc1146d65 (diff)
downloadpdfium-89453e92d5d0b7aaf9e0c3890a90a21adc94a0ce.tar.xz
Convert CXFA_CalculateData::GetMessageText to return WideString
Change-Id: I2ae79c6e77fe2717519156af15cd6cbdd19b58f1 Reviewed-on: https://pdfium-review.googlesource.com/18813 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_calculatedata.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_calculatedata.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/xfa/fxfa/parser/cxfa_calculatedata.cpp b/xfa/fxfa/parser/cxfa_calculatedata.cpp
index b468be77db..fb101d9244 100644
--- a/xfa/fxfa/parser/cxfa_calculatedata.cpp
+++ b/xfa/fxfa/parser/cxfa_calculatedata.cpp
@@ -22,12 +22,13 @@ CXFA_ScriptData CXFA_CalculateData::GetScriptData() {
return CXFA_ScriptData(m_pNode->GetChild(0, XFA_Element::Script, false));
}
-void CXFA_CalculateData::GetMessageText(WideString& wsMessage) {
+WideString CXFA_CalculateData::GetMessageText() {
CXFA_Node* pNode = m_pNode->GetChild(0, XFA_Element::Message, false);
if (!pNode)
- return;
+ return L"";
CXFA_TextData textData(pNode->GetChild(0, XFA_Element::Text, false));
- if (textData)
- textData.GetContent(wsMessage);
+ if (!textData)
+ return L"";
+ return textData.GetContent();
}